/* ------------------------------------------------------------------
   LEDC website styles
   Colours and type follow the SOAS Brand Guidelines (July 2025):
   - Primary: Sea Blue and Sunset Crimson for large areas; Gold as a
     highlight only (small accents, never big blocks).
   - Secondary colours (Sky Blue, Stone, Dark Blue, Grey) used sparingly.
   - Typeface: Museo Sans, falling back to Arial where it isn't installed.
   - Logo: white on dark backgrounds only, with clear space around it.
   ------------------------------------------------------------------ */
:root {
  /* SOAS primary palette */
  --sea-blue: #00869d;
  --crimson: #c81c5d;   /* Sunset Crimson */
  --gold: #fbba00;      /* highlight only */
  /* SOAS secondary palette */
  --sky: #a3d8e9;       /* Sky Blue */
  --stone: #f4e7d8;
  --dark-blue: #1b1f54;
  --grey: #575756;
  /* Neutrals */
  --dark: #000000;      /* header and footer, behind the white logo */
  --light: #f2f2f2;
  --text: #1d1d1b;
  --muted: var(--grey);
  --radius: 10px;
  --wrap: 1180px;
  --font: "Museo Sans", "museo-sans", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 300;   /* Museo Sans 300 for body copy (Arial shows as regular) */
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }   /* Museo Sans 500 for sub-headings */
strong, b { font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; max-width: 60ch; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 5px var(--dark); }

/* Buttons ----------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .7em 1.6em;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
  transition: background .15s, color .15s;
}
.btn--small { padding: .45em 1.2em; font-size: .9rem; }
.btn--dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { color: var(--crimson); }
.btn--outline:hover { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn--outline-light { color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--dark); }
.btn--outline-current:hover { background: rgba(255,255,255,.22); }

/* Header ------------------------------------------------------------ */
.site-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header__inner {
  max-width: 1440px; margin: 0 auto; padding: 1.75rem 1.75rem;
  display: flex; align-items: center; gap: 2.5rem;
}
/* SOAS logo: white on dark only, never recoloured otherwise. The padding
   keeps clear space around it at least the height of the "S". */
.site-logo { display: block; padding: .25rem; }
.site-logo img { height: 56px; width: auto; filter: brightness(0) invert(1); }
.site-nav { margin-left: auto; margin-right: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.site-nav a { text-decoration: none; font-size: 1.02rem; font-weight: 500; padding: .25rem 0; border-bottom: 1.5px solid transparent; }
.site-nav a:hover { border-bottom-color: #fff; }
.site-nav a[aria-current] { border-bottom-color: var(--gold); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: .7rem; }
.social svg { width: 28px; height: 28px; fill: currentColor; }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .site-header__inner { flex-wrap: wrap; gap: 1rem; padding: 1.25rem; }
  .site-logo img { height: 44px; }
  .js .nav-toggle {
    display: block; margin-left: auto; width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative;
    background: none; border: 0; color: #fff;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor;
  }
  .nav-toggle__bars { top: 21px; }
  .nav-toggle__bars::before { top: -8px; left: 0; right: 0; }
  .nav-toggle__bars::after { top: 8px; left: 0; right: 0; }
  .site-nav { width: 100%; margin: 0; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .7rem 0; border-bottom: 1px solid #333; }
  .site-nav a[aria-current] { border-bottom-color: #333; color: var(--gold); }
  .site-header .social { display: none; }
}

/* Bands (full-width coloured sections) ------------------------------ */
.band { padding: 4.5rem 0; }
.band--dark { background: var(--dark); color: #fff; }
.band--teal { background: var(--sea-blue); color: #fff; }
.band--sea-blue { background: var(--sea-blue); color: #fff; }
.band--crimson { background: var(--crimson); color: #fff; }
.band--stone { background: var(--stone); }
.band--dark-blue { background: var(--dark-blue); color: #fff; }
.band--light { background: var(--light); }
.band__title { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 2rem; }
.band--teal .band__title, .band--sea-blue .band__title { color: var(--sky); }
.band__title--crimson { color: var(--crimson); }

/* Home hero --------------------------------------------------------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__box {
  position: relative; margin: 0 1.5rem 0 4%; max-width: 1000px;
  background: rgba(255,255,255,.28); backdrop-filter: blur(2px);
  border-radius: var(--radius); padding: 2rem 2.2rem 1.6rem;
}
.hero__box h1 { color: #fff; margin: 0; font-size: clamp(2.6rem, 7vw, 5.6rem); text-shadow: 0 2px 20px rgba(0,0,0,.25); }

.callout { border-radius: var(--radius); padding: 2rem 2.2rem; max-width: 600px; }
.callout--crimson { background: var(--crimson); color: #fff; }
.callout h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .3em; }

/* Team strip (home) ------------------------------------------------- */
.team-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-bottom: 2.5rem; }
.team-strip figure { margin: 0; text-align: center; }
.team-strip img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem; }
.team-strip figcaption { font-size: 1.1rem; }

/* Events ------------------------------------------------------------ */
.events { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.event {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 1.5rem; align-items: start;
  background: #fff; color: var(--text); border-radius: var(--radius) var(--radius) 48px var(--radius);
  padding: 1.6rem; border: 1px solid #ddd;
}
.event__date { background: var(--gold); color: var(--text); border-radius: 8px; text-align: center; padding: .8rem .4rem; }
.event__day { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1; }
.event__month { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-top: .3rem; }
.event h3 { margin-bottom: .3em; }
.event__meta { color: var(--muted); margin-bottom: .8rem; }
.event__img { width: 180px; border-radius: 8px; }
.events--past .event { opacity: .8; }
.events--past .event__register { display: none; }
.events__empty { background: rgba(255,255,255,.6); padding: 1.2rem 1.5rem; border-radius: var(--radius); }
@media (max-width: 640px) {
  .event { grid-template-columns: 80px 1fr; }
  .event__img { grid-column: 1 / -1; width: 100%; }
}

/* Projects ---------------------------------------------------------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem 2rem; }
.project { display: flex; flex-direction: column; align-items: center; text-align: center; }
.project img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 1rem; }
.project h3 { min-height: 2.4em; display: flex; align-items: center; }
.project p { flex: 1; }
.projects--compact { margin-bottom: 2.5rem; }
.projects--compact .project h3 { min-height: 0; color: #fff; }

/* Inner pages ------------------------------------------------------- */
.page-title { padding: 4rem 1.5rem 2rem; }
.page-banner { position: relative; height: 340px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner h1 { position: relative; color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); text-shadow: 0 2px 24px rgba(0,0,0,.45); margin: 0; }
.page-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; align-items: center; padding-top: 3rem; padding-bottom: 3rem; }
.page-intro__img { width: 100%; max-width: 460px; justify-self: center; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.page-intro__text p { font-size: 1.1rem; }
@media (max-width: 800px) {
  .page-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .page-intro__img { aspect-ratio: 4 / 3; max-width: none; }
}

.prose { max-width: 860px; }
section.wrap.prose { padding-bottom: 3rem; }
.prose h2 { margin-top: 0; }

.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin: 2rem 0 2.5rem; }
.theme { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem; border-top: 5px solid var(--sea-blue); }
.theme:nth-child(3n+2) { border-top-color: var(--gold); }
.theme:nth-child(3n) { border-top-color: var(--crimson); }
.theme p { margin: 0; color: var(--muted); font-size: .98rem; }

#team { padding-top: 4rem; padding-bottom: 4rem; }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.person { display: flex; flex-direction: column; background: var(--light); border-radius: 6px; overflow: hidden; }
.person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.person__text { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.3rem 1.5rem; font-size: .95rem; }
.person__text h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.person__text .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .people { grid-template-columns: 1fr; } }

.programmes h2 { font-size: 2rem; margin-top: 1.5rem; }
.programmes h2:first-child { margin-top: 0; }
.programmes h3 { font-style: italic; }
.programmes ul { padding-left: 1.2rem; }
.programmes .btn { margin-bottom: 1.5rem; }

.split { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 3rem; padding-bottom: 4rem; align-items: start; }
.panel { border-radius: 6px; padding: 2rem 2.2rem; }
.panel--sky { background: var(--sky); }
.partners { display: grid; gap: 2rem; justify-items: center; }
.partners img { max-height: 150px; width: auto; max-width: 100%; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); align-items: center; }
}

.research { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; padding-bottom: 4rem; }
.research__card { border-radius: 8px; padding: 1.8rem; min-height: 280px; display: flex; flex-direction: column; color: #fff; }
.research__card h3 { font-size: 1.4rem; font-weight: 700; flex: 1; }
.research__years { font-size: 1.1rem; }
.research__card .btn { align-self: flex-start; }
.research__card--sea-blue { background: var(--sea-blue); }
.research__card--crimson { background: var(--crimson); }
.research__card--dark-blue { background: var(--dark-blue); }
.research__card--sky { background: var(--sky); color: var(--text); }
.research__card--sky .btn--outline-current:hover { background: rgba(0,0,0,.08); }
.research__card { border-top: 6px solid var(--gold); }

/* Footer ------------------------------------------------------------ */
.site-footer { background: var(--dark); color: #e6e6e6; padding: 3rem 0 1.5rem; }
.site-footer__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 2rem 3rem; align-items: start;
}
.site-footer .site-logo img { height: 72px; }
.site-footer .site-logo { padding: 0 2rem 2rem 0; }
.site-footer address { font-style: normal; line-height: 1.55; }
.site-footer address strong { color: #fff; }
.site-footer__gap { display: block; height: .6rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.site-footer nav a[aria-current="page"] { text-decoration: underline; }
.site-footer__copy { max-width: 1440px; margin: 2.5rem auto 0; padding: 0 1.5rem; font-size: .9rem; color: #aaa; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Pages ported from ledc.info
   ------------------------------------------------------------------ */
.muted { color: var(--muted); font-weight: 300; font-size: .9em; }
.eyebrow { margin: 0 0 .6rem; font-weight: 500; }
.eyebrow a { color: var(--sea-blue); text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.h1--module { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 22ch; }
.module-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.module-meta span { background: var(--stone); border-radius: 999px; padding: .25rem .9rem; font-size: .9rem; font-weight: 500; }
.module-body { padding-bottom: 4rem; }
.module-body h2 { margin-top: 2rem; font-size: 1.6rem; }
.module-body ul { padding-left: 1.2rem; }
.module-body li { margin-bottom: .3rem; }

#modules { padding-top: 4rem; padding-bottom: 4rem; }
.module-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 1.5rem; }
.module-list { list-style: none; margin: 0; padding: 0; }
.module-list li { border-top: 1px solid #ddd; padding: .8rem 0; }
.module-list a { font-weight: 500; color: var(--text); text-decoration: none; border-bottom: 2px solid var(--gold); }
.module-list a:hover { color: var(--crimson); }
.module-other { margin-top: 2.5rem; max-width: 36rem; }
.module-other .muted { margin-left: .4rem; }
@media (max-width: 760px) { .module-cols { grid-template-columns: 1fr; } }

.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin: 0 0 3rem; }
.link-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--stone); text-decoration: none; border-left: 5px solid var(--gold); }
.link-card strong { font-size: 1.15rem; }
.link-card span { color: var(--muted); }
.link-card:hover { background: #efdcc6; }
.research__links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }

.phd { padding-bottom: 4rem; }
.phd-entry { border-top: 1px solid #ddd; padding: 1.3rem 0; max-width: 900px; }
.phd-entry h3 { margin-bottom: .3rem; }
.phd-entry__meta { color: var(--muted); margin-bottom: .5rem; }
details summary { cursor: pointer; color: var(--sea-blue); font-weight: 700; }
details[open] summary { margin-bottom: .6rem; }

.arms { padding-bottom: 2rem; }
.arms__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.arm { background: var(--stone); border-radius: var(--radius); padding: 1.4rem 1.6rem; border-top: 5px solid var(--crimson); }
.arm p { margin: 0; }
@media (max-width: 700px) { .arms__grid { grid-template-columns: 1fr; } }

.members-group { padding-top: 3rem; }
.members-group:last-child { padding-bottom: 4rem; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem 1.5rem; }
.member { text-align: center; }
.member img, .member__nophoto { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem; display: block; background: var(--light); }
.member h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.member h3 a { text-decoration: none; border-bottom: 2px solid var(--gold); }
.member__role { font-weight: 500; color: var(--sea-blue); margin-bottom: .3rem; font-size: .95rem; }
.member__interests { color: var(--muted); font-size: .92rem; margin-bottom: .3rem; }
.member__email { font-size: .88rem; margin: 0; word-break: break-all; }
.voices { display: grid; gap: 1.2rem; }
.voice { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; background: var(--stone); border-radius: var(--radius); padding: 1.4rem; align-items: start; }
.voice img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.voice h3 { margin-bottom: .2rem; }
.voice__role { color: var(--muted); margin-bottom: .6rem; }
@media (max-width: 560px) { .voice { grid-template-columns: 1fr; } }

.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin-bottom: 3.5rem; }
.posters--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.poster { margin: 0; }
.poster img { width: 100%; border-radius: 6px; border: 1px solid #e3e3e3; }
.poster figcaption { display: flex; flex-direction: column; gap: .15rem; margin-top: .6rem; font-size: .92rem; }
.poster__date { color: var(--muted); }
.collabs { display: grid; gap: 1.5rem; padding-bottom: 4rem; }
.collab__images { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.collab__images img { width: 100%; border-radius: 6px; }
.collab h2 { font-size: 1.5rem; max-width: 40ch; }
.collab h2 a { text-decoration: none; border-bottom: 2px solid var(--gold); }

.site-footer__links { display: flex; flex-direction: column; gap: .4rem; }
.site-footer__links strong { color: #fff; }
.site-footer__links .social { margin-top: .6rem; }

.seminar-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 3.5rem; }
.seminar { background: var(--stone); border-radius: var(--radius); padding: 1.3rem 1.5rem; border-top: 5px solid var(--gold); }
.seminar__date { color: var(--muted); margin-bottom: .3rem; font-size: .92rem; }
.seminar h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.seminar__speaker { margin: 0; font-size: .95rem; }
.collab { border-top: 1px solid #ddd; padding-top: 1.5rem; }

/* Clinic reports list and homepage additions ------------------------- */
.outputs { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.outputs li { margin-bottom: .5em; }
.home-intro { padding-top: 4rem; padding-bottom: 3rem; }
.home-intro .lead { max-width: 70ch; }
.home-more { margin-top: 2rem; }
.home-more .btn, .band .center .btn { margin: 0 .4rem .6rem 0; }
.projects--compact .btn--outline { color: #fff; }
.projects--compact .btn--outline:hover { background: #fff; border-color: #fff; color: var(--dark-blue); }
main:focus { outline: none; }
.home-intro .link-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 1000px) { .home-intro .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-intro .link-cards { grid-template-columns: 1fr; } }
html { scroll-padding-top: 130px; }
