:root {
  --font-main: 'Plus Jakarta Sans', Arial, sans-serif;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-heading: clamp(2rem, 3vw, 2.75rem);
  --primary: #74ce51;
  --secondary: #f06c2e;
  --navy: #050a30;
  --green-text: #2c6419;
  --mint: #eef8e9;
  --paper: #f8f9ff;
  --ink: #172234;
  --muted: #526074;
  --line: #dce2e9;
  --max: 1180px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 122px;
}

body {
  font-family: var(--font-main);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}

body.modal-open {
  overflow: hidden;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

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

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.section {
  padding-block: 88px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
}

h1 > span {
  color: var(--green-text);
}

h1 small {
  display: inline-block;
  margin-left: 14px;
  vertical-align: middle;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}

h2 em {
  color: var(--green-text);
  font-weight: inherit;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p, li {
  line-height: 1.75;
}

p + p {
  margin-top: 18px;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--green-text);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Buttons & Links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 22px;
  min-height: 44px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  background: var(--primary);
  color: var(--navy);
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.button:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.button-outline {
  background: transparent;
  color: var(--navy);
  border-color: #b8c4c8;
}

.button-outline:hover {
  background: var(--mint);
  border-color: var(--navy);
}

.button-small {
  padding: 9px 16px;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  color: var(--navy);
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 4px;
}

.text-link:hover {
  color: var(--green-text);
}

.button > span[aria-hidden],
.text-link > span[aria-hidden] {
  font-size: 1.125rem;
  font-weight: 400;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 12px;
  background: #fff;
  color: var(--navy);
  z-index: 1000;
}

.skip-link:focus {
  top: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  height: 101px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 146px;
  height: 72px;
  object-fit: contain;
}

.brand-divider {
  height: 38px;
  border-left: 1px solid #cad4dc;
}

.brand .programme-mark {
  width: 101px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-header nav > a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.site-header nav > a:not(.button):hover {
  color: var(--green-text);
}

/* Hero Section */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/DSC01425.jpg") center / cover no-repeat;
  opacity: 0.03;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
  min-height: calc(100dvh - 84px);
  padding-block: clamp(44px, 5.2vw, 78px);
}

.hero-inner {
  max-width: 580px;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--navy);
  padding: 5px 14px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 24px;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--navy);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.25rem, 3.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-title .title-row-1 {
  color: var(--primary);
  font-weight: 800;
  display: block;
}

.hero-title .title-row-2 {
  display: block;
  color: inherit;
}

.hero-subtitle {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.55;
  max-width: 44ch;
  margin-top: 20px;
}

.hero-description {
  color: #d3dceb;
  font-size: var(--text-body);
  line-height: 1.75;
  max-width: 50ch;
  margin-top: 14px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-application-links {
  display: grid;
  flex-basis: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-application-links > p {
  grid-column: 1 / -1;
  color: #fff;
  font-weight: 700;
}

.hero-application-links .button {
  justify-content: space-between;
  gap: 8px;
  padding: 13px 12px;
  font-size: var(--text-small);
}

.hero .button-outline,
.stream-actions .button-outline {
  color: #fff;
  border-color: #d3dceb;
}

.hero .button-outline:hover,
.stream-actions .button-outline:hover {
  background: #ffffff14;
  border-color: #fff;
}

.hero .button:focus-visible {
  outline-color: #fff;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #ffffff29;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 3px solid var(--secondary);
  padding-left: 12px;
}

.hero-meta-label {
  font-size: var(--text-small);
  font-weight: 600;
  color: #d3dceb;
  line-height: 1.4;
}

.hero-meta-value {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.hero-partners {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.hero-partner-logo {
  width: 100%;
  height: 64px;
  padding: 6px 8px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
}

.hero-photo {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner > * {
  animation: fadeUp 0.65s ease both;
}

.hero-inner > :nth-child(1) { animation-delay: 0.05s; }
.hero-inner > :nth-child(2) { animation-delay: 0.15s; }
.hero-inner > :nth-child(3) { animation-delay: 0.25s; }
.hero-inner > :nth-child(4) { animation-delay: 0.32s; }
.hero-inner > :nth-child(5) { animation-delay: 0.4s; }
.hero-inner > :nth-child(6) { animation-delay: 0.48s; }
.hero-inner > :nth-child(7) { animation-delay: 0.55s; }

/* Section Headings */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 38px;
}

.section-heading > p {
  max-width: 380px;
  color: var(--muted);
  padding-bottom: 4px;
}

/* Workstreams Section */
.workstreams-section {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

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

.stream-card {
  position: relative;
  isolation: isolate;
  min-height: 460px;
  padding: 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s;
}

.stream-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    #02040300,
    #02040320 var(--stream-shade-start, 23%),
    #020403c9 var(--stream-shade-end, 49%),
    #020403f7 100%
  );
}

.stream-card:hover {
  transform: translateY(-4px);
}

.stream-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.45s;
}

.stream-image--bioscience {
  object-position: 20% 40%;
}

.stream-card:hover .stream-image {
  transform: scale(1.03);
}

.stream-index {
  align-self: flex-start;
  color: var(--navy);
  background: var(--mint);
  border-left: 4px solid var(--secondary);
  font-size: var(--text-small);
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  text-transform: uppercase;
  border-radius: 4px;
}

.stream-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
  padding-top: 52px;
}

.stream-lead {
  color: #d3dceb;
  font-size: var(--text-small);
  font-weight: 600;
  margin-top: 8px;
}

.stream-copy h3 {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.stream-fit {
  margin-top: 8px;
}

.stream-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stream-actions .button {
  flex: 1 0 auto;
  justify-content: space-between;
}

.stream-actions .button:focus-visible {
  outline-color: #fff;
}

/* Eligibility Section */
.eligibility-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.eligibility-intro > p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 20px;
  max-width: 460px;
}

.eligibility-section .text-link {
  margin-top: 24px;
}

.eligibility-list {
  list-style: none;
  padding: 0;
}

.eligibility-list li {
  position: relative;
  padding: 0 0 20px 34px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.eligibility-list li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.eligibility-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-text);
  font-size: 1.125rem;
  font-weight: 700;
}

.eligibility-list strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 4px;
}

.eligibility-list span {
  color: var(--muted);
  display: block;
}

.exclusions {
  margin-top: 28px;
  color: var(--muted);
  font-size: var(--text-small);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 5px;
  padding: 20px 22px;
}

.exclusions strong {
  display: block;
  color: var(--navy);
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: 6px;
}

.exclusions p {
  margin: 0;
  line-height: 1.65;
}

/* Support Section */
.support-section {
  background: var(--navy);
  color: #d3dceb;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 40px 88px;
}

.support-section h2,
.support-section h3 {
  color: #fff;
}

.support-section h2 em,
.support-section .eyebrow {
  color: var(--primary);
}

.support-intro > p:not(.eyebrow) {
  max-width: 400px;
  margin-top: 20px;
}

.grant-highlight {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--secondary);
  border-radius: 5px;
  padding: 22px 24px;
  margin-top: 28px;
}

.grant-highlight > span {
  color: #b5c5dd;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.grant-highlight strong {
  display: block;
  color: var(--secondary);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 4px;
}

.grant-highlight p {
  font-size: var(--text-small);
  margin-top: 8px;
}

.grant-clarity {
  color: #e6efdf;
}

.support-list article {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0;
}

.support-list article:first-child {
  padding-top: 0;
}

.support-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.item-number {
  color: var(--primary);
  font-size: var(--text-small);
  font-weight: 700;
  padding-top: 3px;
}

.support-list p {
  margin-top: 6px;
  color: #c5d0e0;
}

.award-note {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  color: #b8c8dd;
  font-size: var(--text-small);
}

/* Application & Journey Section */
.application-section {
  background: var(--mint);
  border-bottom: 1px solid #d0dfd3;
}

.journey {
  --journey-gap: 32px;
  --journey-track-offset: 20px;
  list-style: none;
  padding: calc(var(--journey-track-offset) + 8px) 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--journey-gap);
  margin-bottom: 52px;
}

.journey > li {
  position: relative;
  background: #fff;
  border: 1px solid #cfe0d2;
  border-radius: 14px;
  padding: 22px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.journey > li::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset-block-start: calc(-1 * var(--journey-track-offset));
  inset-inline-start: 50%;
  translate: -50% -50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green-text);
}

/* Connect each waypoint to the next, with an arrow halfway along the track. */
.journey > li:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-block-start: calc(-1 * var(--journey-track-offset));
  inset-inline-start: 50%;
  translate: 0 -50%;
  width: calc(100% + var(--journey-gap) + 2px);
  height: 12px;
  background: var(--green-text);
  clip-path: polygon(
    0 42%, calc(50% - 4px) 42%, calc(50% - 4px) 0,
    calc(50% + 4px) 42%, 100% 42%, 100% 58%,
    calc(50% + 4px) 58%, calc(50% - 4px) 100%, calc(50% - 4px) 58%, 0 58%
  );
}

.journey > .journey-destination {
  background: var(--navy);
  border-color: var(--navy);
}

.journey > .journey-destination::before {
  background: var(--primary);
}

.journey-step-type {
  background: var(--mint);
  border-radius: 999px;
  color: var(--green-text);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  margin-bottom: 10px;
}

.journey-destination .journey-step-type {
  background: var(--primary);
  color: var(--navy);
}

.journey h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.journey p {
  max-width: 38ch;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.6;
}

.journey-destination h3 {
  color: #fff;
}

.journey-destination p {
  color: #d3dceb;
}

.application-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.prepare-panel {
  background: #fff;
  border: 1px solid #d0dfd3;
  border-radius: 6px;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.prepare-panel .button {
  margin-top: auto;
  width: fit-content;
}

.prepare-panel > h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.prepare-panel > p {
  color: var(--muted);
  margin-bottom: 22px;
}

.prepare-list {
  list-style: none;
  padding: 0;
  margin-bottom: 26px;
}

.prepare-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
}

.prepare-list li::before {
  content: '•';
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--green-text);
  font-weight: 800;
  font-size: 1.25rem;
}

.prepare-list strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
}

.prepare-list span {
  display: block;
  color: var(--muted);
  font-size: var(--text-small);
  margin-top: 2px;
}

.dates-panel {
  background: #fff;
  border: 1px solid #d0dfd3;
  border-radius: 6px;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dates-panel > h3 {
  font-size: 1.5rem;
}

.dates-panel dl {
  margin-top: 16px;
}

.dates-panel dl > div {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.dates-panel dt {
  color: var(--muted);
}

.dates-panel dd {
  color: var(--navy);
  font-weight: 600;
  text-align: right;
}

.dates-panel dd > span {
  display: block;
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.webinar-help {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 4px;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--green-text);
  text-underline-offset: 4px;
}

.dates-panel .deadline {
  background: var(--paper);
  margin-inline: -14px;
  padding-inline: 14px;
  border: 0;
  border-left: 3px solid var(--secondary);
  margin-top: 8px;
}

.deadline dt {
  color: var(--navy);
  font-weight: 600;
}

.contact-note {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
}

.contact-note > strong {
  color: var(--navy);
  font-size: var(--text-body);
}

.contact-note p {
  margin-top: 6px;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--green-text);
  text-underline-offset: 4px;
}

.contact-links a + a {
  color: var(--navy);
  text-decoration: none;
}

/* Partners Section */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.partner {
  min-height: 170px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.partner-brand img {
  width: 145px;
  height: 64px;
  object-fit: contain;
}

.partner h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}

.partner-name {
  color: var(--muted);
  font-size: var(--text-small);
  margin: 0;
}

.funder {
  display: flex;
  gap: 36px;
  align-items: center;
  border-left: 4px solid var(--primary);
  padding: 20px 26px;
  margin-top: 32px;
  background: var(--paper);
  border-radius: 0 5px 5px 0;
}

.funder-logo {
  flex-shrink: 0;
  width: 192px;
  height: auto;
}

.funder-copy .eyebrow {
  margin: 0 0 8px;
}

.funder-copy > p:last-child {
  color: var(--muted);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 40px 0 25px;
}

.site-footer > .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
}

.site-footer p {
  color: #b8c8df;
  font-size: var(--text-small);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-small);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-links a:focus-visible,
.site-footer .copyright a:focus-visible {
  outline-color: var(--secondary);
}

.site-footer .copyright {
  flex-basis: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  margin-top: 10px;
}

/* Modal Dialog */
dialog {
  border: 1px solid #d3dce3;
  border-radius: 8px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  width: min(840px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: #fff;
  overscroll-behavior: contain;
}

dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(5, 10, 48, 0.72);
  backdrop-filter: blur(5px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--text-small);
}

.dialog-meta .eyebrow {
  margin-bottom: 0;
}

.dialog-header h2 {
  font-size: 1.5rem;
}

.dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1fb;
  color: var(--navy);
  transition: background 0.2s;
}

.dialog-close:hover {
  background: #e2e7f5;
}

.dialog-body {
  padding: 25px 30px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.workstream-call-title,
.dialog-application > h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.workstream-call-title > span {
  font-size: var(--text-body);
}

.workstream-call-summary {
  color: var(--muted);
  margin-bottom: 22px;
}

.workstream-call-detail h4 {
  margin: 22px 0 8px;
}

.workstream-call-detail p {
  color: var(--muted);
}

.individual-clarification,
.form-progress-note {
  font-size: var(--text-small);
  line-height: 1.7;
  color: var(--muted);
  background: var(--paper);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  margin-block: 14px 18px;
}

.dialog-application {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.application-eligibility {
  margin-bottom: 20px;
  color: var(--muted);
}

.application-eligibility a {
  color: var(--green-text);
  font-weight: 600;
  text-underline-offset: 4px;
}

.application-pending {
  background: var(--paper);
  border: 1px solid #dde4ec;
  padding: 24px;
  border-radius: 5px;
}

.pending-label {
  color: var(--green-text);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.application-pending h4 {
  font-size: 1.375rem;
  margin-block: 10px;
}

.application-pending p,
.application-pending li {
  color: var(--muted);
}

.application-pending h5 {
  font-size: var(--text-body);
  margin-top: 20px;
}

.application-pending ul {
  padding-left: 20px;
  margin-block: 8px 16px;
}

.application-pending .text-link {
  margin-top: 12px;
}

#application-embed iframe {
  display: block;
  border: 1px solid var(--line);
  width: 100%;
  height: 65dvh;
  min-height: 350px;
}

.dialog-footer {
  border-top: 1px solid var(--line);
  padding: 16px 30px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  font-size: var(--text-small);
  flex-shrink: 0;
}

.dialog-done {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  min-height: 44px;
  min-width: 72px;
  padding: 7px 18px;
}

.noscript-message {
  background: var(--mint);
  padding: 18px;
  text-align: center;
  font-size: var(--text-small);
  margin-bottom: 24px;
}

/* Responsive Breakpoints */
@media (max-width: 1050px) {
  .journey {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    padding: 0;
    margin-inline: auto;
  }

  .journey > li::before {
    display: none;
  }

  .journey > li:not(:last-child)::after {
    inset-block-start: calc(100% + 1px + var(--journey-gap) / 2);
    translate: -50% -50%;
    rotate: 90deg;
    width: var(--journey-gap);
  }
}

@media (max-width: 1000px) {
  .nav-wrap {
    height: 90px;
  }

  .site-header nav {
    display: none;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero-inner {
    max-width: 680px;
  }

  .hero-photo {
    position: static;
    width: 100%;
    max-width: 560px;
    height: auto;
    justify-self: center;
  }
}

@media (max-width: 820px) {
  .container {
    width: calc(100% - 40px);
  }

  .section {
    padding-block: 64px;
  }

  .eligibility-section,
  .support-grid,
  .application-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .eligibility-section > div > p:not(.eyebrow),
  .support-intro > p:not(.eyebrow) {
    max-width: 100%;
  }

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

@media (max-width: 600px) {
  html {
    scroll-padding-top: 101px;
  }

  .section {
    padding-block: 52px;
  }

  h1, .hero-title {
    font-size: clamp(2.15rem, 8vw, 3.25rem);
  }

  h2 {
    font-size: 2rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 28px;
  }

  .section-heading > p {
    max-width: 100%;
    margin-top: 14px;
  }

  .hero-layout {
    padding-block: 40px;
  }

  .hero-facts {
    flex-direction: column;
    gap: 14px;
  }

  .hero-meta-value {
    font-size: clamp(1rem, 5vw, 1.375rem);
  }

  .hero-partners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workstream-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .stream-card {
    --stream-shade-start: 17%;
    --stream-shade-end: 34%;
    min-height: 420px;
    padding: 20px;
  }

  .stream-copy h3 {
    font-size: 1.4rem;
  }

  .prepare-panel,
  .dates-panel {
    padding: 24px 20px;
  }

  .dates-panel dl > div {
    display: block;
  }

  .dates-panel dd {
    text-align: left;
    margin-top: 4px;
  }

  .funder {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }

  .site-footer > .container {
    display: block;
  }

  .footer-links {
    margin-block: 20px;
    flex-wrap: wrap;
    gap: 18px;
  }

  .dialog-header,
  .dialog-body {
    padding: 20px;
  }

  .dialog-header h2 {
    font-size: 1.25rem;
  }

  .dialog-footer {
    padding: 14px 20px;
    flex-wrap: wrap;
  }
}

@media (max-height: 600px) {
  dialog {
    max-height: 100dvh;
    border-radius: 0;
  }

  .dialog-header {
    padding: 12px 20px;
  }

  .dialog-footer {
    padding: 10px 20px;
  }
}

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

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