/* Styles for the parts of the site added after the first design:
   navigation on small screens, the "Led by" badge in the hero, and the
   Research Projects, Funding & Awards and News pages. */

[hidden] { display: none !important; }

/* ----- NAVIGATION ----- */
.nav-inner { max-width: 1320px; gap: 2rem; }
.nav-name { white-space: nowrap; }
.nav-links { gap: 1.6rem; }
.nav-links a { white-space: nowrap; }
@media (max-width: 1240px) {
  nav { height: auto; }
  .nav-inner {
    flex-direction: column; align-items: flex-start;
    gap: 0.6rem; padding-top: 0.8rem; padding-bottom: 0.7rem;
  }
  .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
  .nav-name { white-space: normal; }
}

/* ----- HERO: logo column with the "Led by" badge above it ----- */
.hero-side {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.75rem;
}
.hero-pi {
  display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 0.5rem 1.3rem 0.5rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 0.15s;
}
.hero-pi:hover { border-color: var(--ink); }
.hero-pi img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.hero-pi span { display: block; }
.hero-pi-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.hero-pi-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem; line-height: 1.2;
  color: var(--ink);
}
.hero-pi-role { font-size: 0.76rem; color: var(--mid); }
@media (max-width: 900px) {
  .hero-side { align-items: flex-start; }
}

/* ----- HOME PAGE: note shown when there are no upcoming talks ----- */
.talks-empty { font-size: 0.95rem; color: var(--mid); font-weight: 300; }
.talks-empty a { color: var(--accent); font-weight: 500; }

/* ----- SHARED PAGE PIECES ----- */
.page-lead {
  font-size: 1.05rem;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.7;
  max-width: 660px;
  margin-top: 0.9rem;
}
.group-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.9rem;
  scroll-margin-top: 80px;
}
.record-list + .group-title { margin-top: 3.5rem; }

/* A dated entry: the date on the left, a label, a title and a line of text on the right. */
.record-list { border-top: 1px solid var(--border); }
.record {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.record-when {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--light);
  padding-top: 0.3rem;
}
.record-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1.5;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--mid);
}
.record-badge.funding { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.record-badge.award   { background: #fff8e1; color: #b07d00; border-color: #f0d060; }
.record-badge.talk    { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.record-title {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  margin: 0.55rem 0 0.25rem;
}
.record-text {
  font-size: 0.9rem;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.6;
  max-width: 760px;
}
.record-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.record-link:hover { text-decoration: underline; }

/* ----- NEWS PAGE ----- */
.news-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.75rem; }
.news-filter button {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--mid);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.news-filter button:hover { border-color: var(--ink); color: var(--ink); }
.news-filter button.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.news-year { margin-bottom: 3rem; }
.news-year:last-child { margin-bottom: 0; }

/* ----- RESEARCH PROJECTS PAGE ----- */
.project-card {
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--tag-ink, var(--accent));
  border-radius: var(--radius);
  background: var(--white);
  scroll-margin-top: 80px;
}
.project-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--light);
}
.project-sponsor { color: var(--tag-ink, var(--accent)); }
.project-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin: 0.7rem 0 0.8rem;
  max-width: 820px;
}
.project-summary, .project-team {
  font-size: 1rem;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.7;
  max-width: 760px;
}
.project-team { font-size: 0.9rem; margin-top: 0.6rem; }
.project-team strong { font-weight: 500; color: var(--ink); }
.project-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; margin-top: 1.25rem; }
.project-foot .record-link { margin-top: 0; }
a.project-theme { background: var(--tag-bg); color: var(--tag-ink); border-color: var(--tag-line); }

@media (max-width: 600px) {
  .record { grid-template-columns: 1fr; gap: 0.4rem; }
  .record-when:empty { display: none; }
  .project-card { padding: 1.5rem 1.25rem; }
}
