:root { --accent:#0b6f73; --link:#0b6070; }

.site-brand-text { font-weight:800; font-size:1.05rem; color:var(--text); text-decoration:none; line-height:1.15; }
.site-brand-text span { display:block; font-size:.76rem; font-weight:500; color:var(--muted); margin-top:.12rem; }

.nav-highlight { border:1px solid rgba(11,111,115,.24); background:#eef8f7; color:var(--accent)!important; font-weight:700; }

.hero-photo { width:min(360px,82vw); aspect-ratio:1/1; object-fit:cover; border-radius:12px; border:1px solid var(--border); }
.kicker { color:var(--accent); font-weight:700; margin:0 0 .45rem; }
.page-main { padding:2.7rem 0 4rem; min-height:65vh; }
.page-main h1 { font-size:clamp(2.1rem,4vw,3.8rem); line-height:1.05; margin:.2rem 0 1rem; }
.page-intro { max-width:820px; color:var(--muted); font-size:1.1rem; }

.section { margin:clamp(2.7rem,6vw,5rem) 0; }
.section-heading-block { max-width:820px; margin-bottom:1.35rem; }
.section-heading-block h2 { margin:.15rem 0 .55rem; font-size:clamp(1.65rem,3vw,2.45rem); line-height:1.12; }
.section-intro { margin:.35rem 0 0; color:var(--muted); font-size:1.04rem; }
.section-action { margin-top:1.25rem; }

.hero-callout { max-width:720px; margin-top:1.35rem; padding:1rem 1.05rem; border-left:4px solid var(--accent); background:#eef8f7; border-radius:0 10px 10px 0; }
.hero-callout p { margin:.5rem 0 0; color:var(--muted); }
.status-badge, .project-label { display:inline-flex; align-items:center; width:fit-content; border-radius:999px; padding:.25rem .58rem; background:#dff2ef; color:var(--accent); font-size:.78rem; font-weight:800; letter-spacing:.01em; }

.question-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.question-card { position:relative; border:1px solid var(--border); border-radius:12px; background:var(--surface); padding:1.35rem; }
.question-number { display:block; margin-bottom:1.5rem; color:var(--accent); font-size:.82rem; font-weight:800; }
.question-card h3 { margin:0 0 .55rem; font-size:1.16rem; line-height:1.3; }
.question-card p { margin:0; color:var(--muted); }

.feature-panel { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(250px,.55fr); gap:clamp(1.5rem,4vw,3.5rem); align-items:center; margin:clamp(2.8rem,7vw,5.5rem) 0; padding:clamp(1.5rem,4vw,2.4rem); border:1px solid #cfe1de; border-radius:16px; background:linear-gradient(135deg,#f9fcfb 0%,#edf7f5 100%); }
.feature-panel h2 { margin:.15rem 0 .7rem; font-size:clamp(1.6rem,3vw,2.35rem); line-height:1.15; }
.feature-panel p { color:var(--muted); }
.feature-stat { border-left:1px solid #cfe1de; padding-left:1.5rem; }
.feature-stat strong { display:block; margin-bottom:.45rem; font-size:1.05rem; color:var(--text); }
.text-link { font-weight:800; text-decoration:none; }

.pill-row, .pill-cloud { display:flex; flex-wrap:wrap; gap:.45rem; margin:.9rem 0; }
.pill { display:inline-flex; align-items:center; min-height:1.9rem; padding:.25rem .62rem; border:1px solid var(--border); border-radius:999px; background:rgba(255,255,255,.78); color:var(--muted); font-size:.82rem; font-weight:700; }

.project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.project-card { border:1px solid var(--border); border-radius:12px; background:var(--surface); padding:1.3rem; }
.project-card h3 { margin:.15rem 0 .55rem; font-size:1.15rem; line-height:1.3; }
.project-card p { color:var(--muted); }
.project-card p:last-child { margin-bottom:0; }
.project-meta { padding-top:.7rem; border-top:1px solid var(--border); font-size:.9rem; line-height:1.5; }
.project-meta strong { color:var(--text); }
.project-card-large { padding:1.5rem; }

.benefit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.benefit-card { border-top:3px solid #cfe1de; background:var(--surface); padding:1.05rem 1.15rem 1.2rem; }
.benefit-card h3 { margin:0 0 .35rem; font-size:1.04rem; }
.benefit-card p { margin:0; color:var(--muted); }

.cta-panel { display:flex; justify-content:space-between; align-items:center; gap:2rem; margin:clamp(3rem,7vw,5.5rem) 0 1rem; padding:clamp(1.5rem,4vw,2.4rem); border-radius:16px; background:#16211f; color:#fff; }
.cta-panel h2 { margin:.1rem 0 .55rem; font-size:clamp(1.55rem,3vw,2.3rem); line-height:1.15; color:#fff; }
.cta-panel p { max-width:760px; margin:.3rem 0 0; color:#d4dfdc; }
.cta-panel .eyebrow { color:#8fd4cd; }
.cta-panel .button-secondary { background:transparent; border-color:#9fc8c4; color:#fff; }
.cta-panel .button-secondary:hover { background:rgba(255,255,255,.08); }

.join-secondary-lead { margin-top:.85rem; }
.idea-note { margin-top:1rem; padding:1rem 1.15rem; border:1px dashed #aacbc7; border-radius:10px; background:#f7fbfa; }
.idea-note p { margin:.35rem 0 0; color:var(--muted); }

.application-steps { display:grid; gap:.7rem; max-width:900px; }
.application-step { display:grid; grid-template-columns:2.4rem minmax(0,1fr); gap:.9rem; align-items:start; padding:1rem 0; border-top:1px solid var(--border); }
.application-step:first-child { border-top:0; }
.application-step > span { display:inline-flex; align-items:center; justify-content:center; width:2.2rem; height:2.2rem; border-radius:50%; background:#e5f3f1; color:var(--accent); font-weight:800; }
.application-step h3 { margin:0 0 .2rem; font-size:1rem; }
.application-step p { margin:0; color:var(--muted); }

.prose-panel { max-width:900px; }
.prose-panel p:first-child { margin-top:0; }
.postdoc-note { margin-bottom:0; }

.research-programme { display:grid; gap:1rem; margin:2rem 0; }
.research-programme-card { border:1px solid var(--border); border-radius:12px; background:var(--surface); padding:1.4rem; }
.research-programme-card h2 { margin:.1rem 0 .55rem; font-size:1.35rem; line-height:1.25; }
.research-programme-card > p:not(.eyebrow) { color:var(--muted); }
.research-question { margin-top:1rem; padding-top:.8rem; border-top:1px solid var(--border); }
.research-question strong { color:var(--text); }
.research-feature { margin-top:3.2rem; }
.pill-cloud { align-content:center; justify-content:center; }

.people-grid { display:grid; gap:1rem; }
.people-grid .person-card { margin:0; }
.person-role { margin:.1rem 0 .65rem!important; color:var(--accent)!important; font-size:.92rem; font-weight:800; }
.lead-person-card { margin-top:.8rem; }
.network-panel { margin-top:3.5rem; }

.research-detail { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1.5rem 0; }
.research-detail .card { min-height:220px; }
.pub-year { margin-top:2rem; padding-bottom:.35rem; border-bottom:1px solid var(--border); }
.pub-item { padding:1rem 0; border-bottom:1px solid var(--border); }
.pub-item p { margin:.2rem 0; }
.pub-links { font-size:.92rem; }
.person-card { display:grid; grid-template-columns:180px 1fr; gap:1.5rem; align-items:start; }
.person-card img { width:180px; aspect-ratio:1/1; object-fit:cover; border-radius:10px; }
.software-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-top:1.5rem; }
.software-feature { margin-top:2.2rem; }

.site-footer { border-top:1px solid var(--border); background:var(--surface); }
.footer-inner { align-items:flex-start; }
.small { font-size:.9rem; color:var(--muted); }
.pub-title { color:inherit; text-decoration:none; border-bottom:1px solid transparent; transition:color .18s ease,border-color .18s ease; }
.pub-title:hover, .pub-title:focus { color:var(--accent); border-bottom-color:currentColor; }

/* Homepage eye-movement video */
.hero-video-wrap { width:100%; justify-items:stretch; }
.hero-video { display:block; width:100%; max-width:680px; aspect-ratio:16/9; object-fit:contain; background:#0b0f12; border:1px solid var(--border); border-radius:12px; box-shadow:0 12px 32px rgba(20,36,38,.10); }
.hero-video-caption { max-width:680px; margin:.55rem 0 0; color:var(--muted); font-size:.82rem; line-height:1.35; }
@media (min-width:901px) { .hero { grid-template-columns:minmax(0,.88fr) minmax(500px,1.12fr); } }
@media (max-width:900px) { .hero-video { max-width:100%; } .hero-video-caption { max-width:100%; } }

/* Join the group page */
.join-page { padding-top:3rem; padding-bottom:4rem; }
.join-intro { max-width:900px; margin-bottom:3rem; }
.funding-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-top:1.5rem; }
.funding-card { border:1px solid var(--border); border-radius:12px; background:var(--surface); padding:1.25rem; }
.funding-card h3 { margin-top:0; margin-bottom:.5rem; font-size:1.02rem; }
.funding-card p { margin-bottom:.7rem; color:var(--muted); }
.funding-card a { text-underline-offset:3px; }
.funding-eligibility { margin:.15rem 0 .7rem!important; padding:.55rem .65rem; border-radius:8px; background:#eef8f7; color:var(--text)!important; font-size:.86rem; line-height:1.45; }
.funding-eligibility strong { color:var(--accent); }
.funding-subheading { margin:1.6rem 0 .5rem; font-size:1.05rem; color:var(--text); }
.funding-subheading-spaced { margin-top:2.3rem; }
.funding-tip { margin-top:1.2rem; }

@media (max-width:900px) {
  .feature-panel { grid-template-columns:1fr; }
  .feature-stat { border-left:0; border-top:1px solid #cfe1de; padding:1.25rem 0 0; }
  .question-grid, .project-grid, .benefit-grid { grid-template-columns:1fr; }
  .cta-panel { align-items:flex-start; flex-direction:column; }
}

@media (max-width:800px) {
  .research-detail,.software-grid,.funding-grid { grid-template-columns:1fr; }
  .person-card { grid-template-columns:1fr; }
  .person-card img { width:150px; }
  .hero { grid-template-columns:1fr; }
  .hero-visual { justify-items:start; }
  .nav-list { justify-content:flex-start; }
  .header-inner { align-items:flex-start; flex-direction:column; }
}

@media (max-width:760px) {
  .join-page { padding-top:2rem; }
}

/* Funding comparison table */
.funding-table-wrap {
  overflow-x:auto;
  margin-top:1.4rem;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  -webkit-overflow-scrolling:touch;
}
.funding-table {
  width:100%;
  min-width:1320px;
  border-collapse:collapse;
  font-size:.92rem;
  line-height:1.45;
}
.funding-table th,
.funding-table td {
  padding:.9rem .85rem;
  border-bottom:1px solid var(--border);
  border-right:1px solid var(--border);
  text-align:left;
  vertical-align:top;
}
.funding-table th:last-child,
.funding-table td:last-child { border-right:0; }
.funding-table tbody tr:last-child th,
.funding-table tbody tr:last-child td { border-bottom:0; }
.funding-table thead th {
  position:sticky;
  top:0;
  z-index:1;
  background:#eef5f4;
  color:var(--text);
  font-size:.82rem;
  font-weight:800;
}
.funding-table tbody th {
  width:20%;
  min-width:210px;
  background:#fbfcfc;
  font-weight:700;
}
.funding-table tbody th a {
  color:var(--link);
  text-decoration:none;
}
.funding-table tbody th a:hover { text-decoration:underline; }
.funding-table td { color:var(--muted); }
.table-status {
  display:inline-flex;
  align-items:center;
  width:fit-content;
  padding:.18rem .48rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  line-height:1.25;
}
.table-status-yes { background:#e4f4ef; color:#0b6f53; }
.table-status-no { background:#f3f3f3; color:#676767; }
.table-status-conditional { background:#fff4dc; color:#8a5a00; }
.table-note {
  display:inline-block;
  margin-top:.28rem;
  color:var(--muted);
  font-size:.8rem;
}
@media (max-width:760px) {
  .funding-table-wrap::after {
    content:"Scroll horizontally to compare all columns →";
    display:block;
    position:sticky;
    left:0;
    width:100%;
    padding:.55rem .75rem;
    border-top:1px solid var(--border);
    background:#fbfcfc;
    color:var(--muted);
    font-size:.78rem;
  }
}