/* ==========================================================================
   Q-ASSIST shared stylesheet
   Clean, calm, academic style. WCAG AA colour contrast throughout.
   ========================================================================== */

:root {
  /* Colour palette — "Option C, light blush", drawn from the Q-ASSIST logo.
     All text/background pairs meet WCAG AA. */
  --colour-ink: #443a40;          /* body text — soft charcoal */
  --colour-ink-soft: #6b5e66;     /* secondary text (6.1:1 on white) */
  --colour-heading: #b33063;      /* headings and nav text (6.0:1 on white) */
  --colour-primary: #c0264c;      /* links and primary buttons (5.8:1 on white) */
  --colour-primary-dark: #98203d; /* link/button hover */
  --colour-accent: #2e9e84;       /* soft teal — secondary accent fills/borders */
  --colour-accent-ink: #1f7a66;   /* darker teal for teal TEXT (5.2:1 on white) */
  --colour-accent-soft: #e4f3ef;  /* pale teal tint */
  --colour-decor: #f8854a;        /* soft orange — DECORATIVE ONLY (hover
                                     underlines, thin dividers, icons on a
                                     coloured band); never body text,
                                     headings, or links */
  --colour-bg: #ffffff;
  --colour-bg-soft: #fceff2;      /* pale blush tint for section bands */
  --colour-border: #ece2e6;       /* thin light borders and rules */
  --colour-focus: #1f7a66;        /* focus outline (5.2:1 on white) */

  /* Domain colours — exact roadmap colours; decorative use only
     (card bars, dots, marker fills); supporting text always sits nearby. */
  --domain-1: #c0264c;            /* Designing and embedding Inclusion Early */
  --domain-2: #e27a2c;            /* Building Relationships with Communities ... */
  --domain-3: #2e9e84;            /* Equipping Trial Teams to Deliver Inclusive Trials */
  --domain-4: #6e5fc8;            /* Ensuring Trial Outcomes and Findings ... */
  --domain-5: #2f7fd0;            /* Extending Inclusion Beyond the Trial */
  --domain-6: #e1972a;            /* System Enablers (cross-cutting) */

  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;

  --max-width: 70rem;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;       /* 18px base for readability */
  line-height: 1.65;
  color: var(--colour-ink);
  background-color: var(--colour-bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--colour-heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 1.5em; }
h3 { font-size: 1.35rem; margin-top: 1.2em; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--colour-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--colour-primary-dark);
  text-decoration-color: var(--colour-decor); /* decorative underline only */
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  padding-left: 1.4em;
}

/* Visible focus indicator everywhere, for keyboard users */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--colour-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link — first focusable element on every page */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--colour-primary-dark);
  color: #ffffff;
  padding: 0.6em 1em;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
  color: #ffffff;
}

/* Shared layout container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding: 2rem 0 3rem;
}

main.container {
  padding-top: 2.5rem;
}

/* Placeholder styling — makes every [PLACEHOLDER] block easy to spot */
.placeholder {
  background: #fdf6ec;
  border: 2px dashed #c8a06a;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #6b4a14;
  font-style: italic;
}

.placeholder-inline {
  background: #fdf6ec;
  border: 1px dashed #c8a06a;
  border-radius: 4px;
  padding: 0 0.3em;
  color: #6b4a14;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--colour-bg);
  border-bottom: 3px solid var(--colour-decor); /* thin decorative divider */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Home page only: header has no brand mark (the full logo already sits in
   the hero below), so push the nav to the right instead of space-between. */
.site-header--no-brand .header-inner {
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--colour-heading);
}

/* Mobile menu toggle (hidden on wide screens) */
.menu-toggle {
  display: none;
  background: var(--colour-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.55em 0.9em;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--colour-primary-dark);
}

/* Top-level list only (">" keeps this off the nested dropdown <ul>,
   which must stay display:none until opened) */
.site-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.site-nav a,
.site-nav .dropdown-toggle {
  display: block;
  padding: 0.6em 0.85em;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--colour-heading);
  text-decoration: none;
  border-radius: 6px;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav .dropdown-toggle:hover {
  background: var(--colour-bg-soft);
  color: var(--colour-primary-dark);
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--colour-primary-dark);
  box-shadow: inset 0 -3px 0 var(--colour-decor);
}

/* Dropdown */
.dropdown {
  position: relative;
}

/* Split control: the label is a normal link to the overview page; the
   chevron button beside it toggles the dropdown */
.dropdown-label {
  display: flex;
  align-items: stretch;
}

.dropdown-label > a {
  padding-right: 0.3em;
  border-radius: 6px 0 0 6px;
}

.dropdown-label .dropdown-toggle {
  padding-left: 0.3em;
  padding-right: 0.6em;
  border-radius: 0 6px 6px 0;
}

.dropdown-toggle .chevron {
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 0.15s ease;
  font-size: 0.8em;
}

.dropdown.open .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 22rem;
  background: var(--colour-bg);
  border: 1px solid var(--colour-border);
  border-top: 3px solid var(--colour-primary);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(68, 58, 64, 0.15);
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  z-index: 50;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  width: 100%;
  padding: 0.55em 0.75em;
  font-size: 1rem;
  font-weight: 400;
  border-radius: 6px;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--colour-bg-soft);
}

.dropdown-menu .domain-dot {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  margin-right: 0.55em;
  vertical-align: baseline;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--colour-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.7em 1.4em;
  border-radius: 8px;
  border: 2px solid var(--colour-primary);
  cursor: pointer;
}

.btn:hover {
  background: var(--colour-primary-dark);
  border-color: var(--colour-primary-dark);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--colour-accent-ink);
  border-color: var(--colour-accent);
}

.btn-secondary:hover {
  background: var(--colour-accent-soft);
  border-color: var(--colour-accent-ink);
  color: var(--colour-accent-ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

/* --------------------------------------------------------------------------
   Home page
   -------------------------------------------------------------------------- */

.hero {
  background: var(--colour-bg-soft);
  border-bottom: 1px solid var(--colour-border);
  padding: 2.5rem 0;
  text-align: center;
}

.hero .hero-logo {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  margin: 0 auto;
}

/* Visible only to screen readers (keeps a single h1 on the page) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Single-column home flow with generous vertical rhythm */
.home-flow {
  max-width: 52rem;
}

.home-section {
  margin: 3.5rem auto 0;
}

/* Clear gap between the blush hero and the first section */
.home-section:first-child {
  margin-top: 4rem;
}

.home-section .btn-row {
  margin-top: 1.25rem;
}

/* Lead/callout box for the key study statement: tinted background with
   an accent left bar, normal body text inside. */
.callout-box {
  background: #fceff2;
  border-left: 4px solid #b33063;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.callout-box p {
  margin: 0;
}

/* Home call-to-action card row: three equal-height cards side by side,
   stacking on mobile. Accent colour per card via --card-accent. */
.cta-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 1.5rem;
}

.cta-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-bg, var(--colour-bg));
  border: 1px solid var(--colour-border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(68, 58, 64, 0.12);
}

.cta-icon {
  color: var(--card-accent, var(--colour-accent));
  line-height: 0;
}

.cta-heading {
  margin: 0.75rem 0 0;
  font-size: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--card-accent, var(--colour-accent));
  align-self: flex-start;
}

.cta-card p {
  margin: 1rem 0 0;
}

/* Push the button to the bottom so all three align across the row.
   Scoped to .cta-card so it outranks the `.cta-card p` margin rule
   above (otherwise that rule's margin-top would override this auto). */
.cta-card .cta-action {
  margin-top: auto;
  padding-top: 1.25rem;
  align-self: flex-start;
}

@media (max-width: 760px) {
  .cta-cards {
    grid-template-columns: 1fr;
  }

  .key-numbers {
    grid-template-columns: 1fr;
  }

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

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

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

/* Domain grid (home page) */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.domain-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--colour-bg);
  border: 1px solid var(--colour-border);
  border-top: 6px solid var(--card-colour, var(--colour-primary));
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--colour-ink);
  box-shadow: 0 2px 6px rgba(68, 58, 64, 0.08);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(68, 58, 64, 0.12);
  color: var(--colour-ink);
}

.domain-card .domain-number {
  /* Fixed accessible colour — the per-domain colour stays on the (decorative)
     top bar, where no AA text contrast is required */
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--colour-ink-soft);
}

.domain-card .domain-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--colour-heading);
}

.domain-card .domain-link-hint {
  margin-top: auto;
  font-size: 0.95rem;
  color: var(--colour-ink-soft);
}

/* --------------------------------------------------------------------------
   Section / page basics
   -------------------------------------------------------------------------- */

.page-intro {
  max-width: 48rem;
}

.phase-section {
  border-top: 1px solid var(--colour-border);
  padding-top: 1.5rem;
  margin-top: 2rem;
  /* Keep anchored headings visible below any UI when jumped to */
  scroll-margin-top: 1.5rem;
}

h1 .domain-dot {
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  margin-right: 0.4em;
}

/* "Back to overview" link on domain pages */
.breadcrumb {
  font-size: 0.98rem;
  margin: 0 0 1.5rem;
}

/* Responsive 16:9 video area on domain pages.
   .video-placeholder is the labelled empty frame; swap it for a
   .video-embed div holding an <iframe> or <video> (see the HTML comment
   next to it) and the media fills the same 16:9 frame. */
.video-placeholder,
.video-embed {
  width: 100%;
  max-width: 50rem;
  aspect-ratio: 16 / 9;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: #fdf6ec;
  border: 2px dashed #c8a06a;
  border-radius: 8px;
  color: #6b4a14;
  font-style: italic;
}

.video-placeholder p {
  margin: 0;
}

.video-embed iframe,
.video-embed video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Roadmap (Guiding Principles overview page)
   -------------------------------------------------------------------------- */

.roadmap {
  margin: 2rem 0;
}

/* Road graphic on the left, domain key panel on the right; the key wraps
   below the road on narrow screens */
.roadmap-figure {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.roadmap-road {
  flex: 1 1 26rem;
  min-width: 18rem;
  max-width: 44rem;
}

.roadmap-road svg {
  display: block;
  width: 100%;
  height: auto;
}

.stage-label {
  font-family: var(--font-body);
  font-size: 17px;
  fill: var(--colour-ink);
}

.stage-number-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  fill: #ffffff;
  /* subtle dark edge keeps white digits legible on the lighter
     marker colours without changing the exact fills */
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 1.5px;
}

.stage-link circle {
  stroke: #ffffff;
  stroke-width: 2;
  transition: transform 0.25s ease, filter 0.25s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.stage-link:hover circle,
.stage-link:focus circle,
.stage-link:focus-visible circle {
  stroke: var(--colour-focus);
  stroke-width: 3;
  transform: scale(1.2) translateY(-2px);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.stage-link:hover text,
.stage-link:focus text,
.stage-link:focus-visible text {
  transition: transform 0.25s ease;
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(1.2) translateY(-2px);
}

.stage-link.marker-hidden circle,
.stage-link.marker-hidden text {
  opacity: 0;
}

.stage-link.marker-visible circle,
.stage-link.marker-visible text {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.25s ease, filter 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .stage-link.marker-hidden circle,
  .stage-link.marker-hidden text {
    opacity: 1;
  }
  .stage-link.marker-visible circle,
  .stage-link.marker-visible text {
    transition: none;
  }
  .stage-link circle,
  .stage-link:hover circle,
  .stage-link:focus circle {
    transition: none;
    transform: none;
    filter: none;
  }
  .stage-link:hover text,
  .stage-link:focus text {
    transition: none;
    transform: none;
  }
}

/* Domain key panel */
.roadmap-legend {
  flex: 1 1 19rem;
  max-width: 28rem;
  align-self: center;
  background: var(--colour-bg);
  border: 1px solid var(--colour-border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.roadmap-legend h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 1rem;
}

.legend-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.legend-swatch {
  flex-shrink: 0;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  margin-top: 0.35em;
}

.legend-note {
  color: var(--colour-ink-soft);
}

/* --------------------------------------------------------------------------
   Team page
   -------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.team-card {
  background: var(--colour-bg);
  border: 1px solid var(--colour-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(68, 58, 64, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(68, 58, 64, 0.12);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  display: block;
  border-bottom: 1px solid var(--colour-border);
  background: var(--colour-bg-soft);
}

.team-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.team-card h3 {
  margin: 0 0 0.2em;
  font-size: 1.15rem;
}

.team-card .role {
  font-weight: 600;
  color: var(--colour-ink-soft);
  font-size: 0.98rem;
  margin-bottom: 0;
}

.team-card .bio {
  font-size: 0.95rem;
  margin: 0.6em 0 0;
}

.team-card .bio p {
  margin: 0;
}

.js-bio-popup .team-card .bio {
  display: none;
}

/* ----- Team popup overlay ----- */

.team-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(68, 58, 64, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.team-popup-overlay.open {
  opacity: 1;
  visibility: visible;
}

.team-popup {
  position: relative;
  background: var(--colour-bg);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(68, 58, 64, 0.25);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2rem 2.5rem;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.team-popup-overlay.open .team-popup {
  transform: translateY(0);
}

.team-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--colour-ink-soft);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.team-popup-close:hover {
  background: var(--colour-bg-soft);
  color: var(--colour-heading);
}

.team-popup-photo {
  width: 100%;
  max-height: 20rem;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
  background: var(--colour-bg-soft);
  margin-bottom: 1.25rem;
}

.team-popup-name {
  margin: 0 0 0.2em;
  font-size: 1.3rem;
}

.team-popup-role {
  font-weight: 600;
  color: var(--colour-ink-soft);
  font-size: 0.98rem;
  margin: 0 0 1rem;
}

.team-popup-bio {
  font-size: 0.98rem;
  line-height: 1.6;
}

.team-popup-bio p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .team-popup-overlay {
    transition: none;
  }
  .team-popup {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Resources page
   -------------------------------------------------------------------------- */

.resource-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-item {
  border: 1px solid var(--colour-border);
  border-left: 4px solid var(--colour-accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: var(--colour-bg);
}

.resource-item h3 {
  margin: 0 0 0.3em;
  font-size: 1.15rem;
}

.resource-item p {
  margin: 0;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   About page — key numbers + timeline
   -------------------------------------------------------------------------- */

.key-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2.5rem;
}

.key-number {
  text-align: center;
  background: var(--colour-bg-soft);
  border: 1px solid var(--colour-border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.key-number:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(68, 58, 64, 0.12);
}

.key-number-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #B33063;
  line-height: 1.1;
}

.key-number-label {
  display: block;
  font-size: 0.92rem;
  color: var(--colour-ink-soft);
  margin-top: 0.25rem;
}

.study-timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2.5rem;
  position: relative;
}

.study-timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--colour-border);
}

.tl-step {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}

.tl-step:last-child {
  padding-bottom: 0;
}

.tl-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #B33063;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.tl-step--upcoming .tl-badge {
  background: #ffffff;
  color: #B33063;
  border: 2px solid #B33063;
}

.tl-body {
  flex: 1;
  padding-top: 0.35rem;
}

.tl-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--colour-heading);
}

.tl-body p {
  margin: 0 0 0.6rem;
}

.tl-body p:last-child {
  margin-bottom: 0;
}

.tl-found {
  color: #B33063;
}

.tl-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--colour-accent-soft);
  color: var(--colour-accent-ink);
  padding: 0.15em 0.6em;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.tl-step.tl-hidden {
  opacity: 0;
  transform: translateY(24px);
}

.tl-step.tl-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .tl-step.tl-hidden {
    opacity: 1;
    transform: none;
  }
  .tl-step.tl-visible {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-panel {
  background: var(--colour-bg-soft);
  border: 1px solid var(--colour-border);
  border-radius: 10px;
  padding: 2rem 2rem;
}

.contact-panel h2 {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  color: var(--colour-heading);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--colour-accent-soft);
  border-radius: 8px;
  color: var(--colour-accent-ink);
}

.contact-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--colour-ink);
  margin-bottom: 0.1rem;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  color: var(--colour-ink-soft);
}

.contact-value a {
  color: var(--colour-primary);
  overflow-wrap: break-word;
  word-break: normal;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #4A1528;
  color: #f0dce3;
  margin-top: 3rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer a {
  color: #f0dce3;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
  color: #ffffff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2.5rem;
}

.footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.footer-brand .brand-name {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.footer-brand img {
  height: 40px;
  width: auto;
}

.footer-affiliation {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  color: #d4b6c2;
}

.footer-tagline {
  margin: 0.75rem 0 0;
  font-style: italic;
  color: #d4b6c2;
  font-size: 0.92rem;
}

.footer-funding {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: #d4b6c2;
  max-width: 28rem;
}

.footer-logos {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1rem;
}

.footer-logo-panel {
  width: 180px;
  background: #ffffff;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-panel img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

.footer-col h3 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

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

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col li a {
  font-size: 0.93rem;
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.93rem;
}

.footer-contact-line svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #d4b6c2;
}

.footer-bottom a {
  color: #d4b6c2;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Domain page — "In development" status
   -------------------------------------------------------------------------- */

.domain-status {
  max-width: 40rem;
  margin: 2rem 0;
}

.status-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--colour-accent-soft);
  color: var(--colour-accent-ink);
  padding: 0.2em 0.7em;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.domain-status p {
  color: var(--colour-ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Responsive — mobile navigation
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
  }

  .site-nav a,
  .site-nav .dropdown-toggle {
    width: 100%;
    text-align: left;
  }

  /* Keep the split Guiding Principles control on one row in the mobile
     menu: link grows, chevron button stays compact */
  .site-nav .dropdown-label > a {
    width: auto;
    flex: 1;
  }

  .site-nav .dropdown-label .dropdown-toggle {
    width: auto;
    flex: 0 0 auto;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--colour-primary);
    border-radius: 0;
    margin-left: 0.75rem;
  }

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

  .hero {
    padding: 2rem 0;
  }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }

  .key-numbers {
    grid-template-columns: repeat(2, 1fr);
  }

  .key-number-value {
    font-size: 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}
