/* Components used by inner pages: home extras, research cards, people, news,
   grants, gallery. All colours come from site.css tokens. */

/* ── Home: about block ──────────────────────────────────────────────────── */

.lede {
  font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--ink);
  padding-left: 13px; border-left: 3px solid var(--accent);
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
.facts div { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.facts dt { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.facts dd { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }

.tl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 18px; }
.tl li { position: relative; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.tl li::before {
  content: ''; position: absolute; top: -4.5px; left: 0;
  width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-2);
}
.tl li.now::before { background: var(--accent); border-color: var(--accent); }
.tl .yr { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.tl li.now .yr { color: var(--accent); font-weight: 700; }

.bio { margin-top: 18px; }
.bio p { font-size: 13.5px; color: var(--ink-2); }
.bio p + p { margin-top: 10px; }

.logos { display: flex; gap: 14px; align-items: stretch; }
.logos > * { flex-basis: 0; }

/* ── Home: team split ───────────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.split--text-only { grid-template-columns: minmax(0, 1fr); }
.split__side { display: grid; gap: 10px; }
.split__side b { font-size: 26px; font-family: var(--font-mono); line-height: 1; }
.split__side p { font-size: 13px; color: var(--ink-2); }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ── Research directions ────────────────────────────────────────────────── */

.dirgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dir { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.dir__head { padding: 13px 13px 0; }
.dir__head h3 { font-size: 14.5px; font-weight: 700; }
.dir__fig { border-bottom: 1px solid var(--line); }
.dir__meta { padding: 7px 12px; font-size: 11px; color: var(--ink-3); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dir__meta a:hover { color: var(--accent); }
.dir__credit { padding: 6px 12px; font-size: 10px; line-height: 1.45; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.dir__body { padding: 13px; display: grid; gap: 8px; align-content: start; flex: 1; }
.dir__body h3 { font-size: 14.5px; font-weight: 700; }
.dir__body p { font-size: 13px; color: var(--ink-2); }
.dir__paper { font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 8px; margin-top: auto; }
.dir__paper a { color: var(--accent); }

/* ── People ─────────────────────────────────────────────────────────────── */

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pc { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.pc__body { padding: 11px 12px; display: grid; gap: 3px; }
.pc__body h3 { font-size: 14px; font-weight: 700; }
.pc__body .role { font-size: 12px; color: var(--accent); }
.pc__body .aff, .pc__body p { font-size: 12px; color: var(--ink-2); }
.pc__body a.mail { font-size: 11.5px; color: var(--ink-3); word-break: break-all; }
.initials {
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 28px; font-weight: 700; letter-spacing: .04em;
}

/* ── News cards ─────────────────────────────────────────────────────────── */

.ncgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; grid-auto-rows: 1fr; }
.nc { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 13px; display: grid; gap: 7px; align-content: start; }
.nc .date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.nc .outlet { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.nc h3 { font-size: 13.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc .more { margin-top: auto; align-self: end; font-size: 11.5px; color: var(--accent); }

/* ── Grants ─────────────────────────────────────────────────────────────── */

.grants li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.grants li:nth-child(odd) { background: var(--surface-2); }
.grants li:last-child { border-bottom: 0; }
.grants h3 { font-size: 13.5px; font-weight: 700; }
.grants .sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.grants .amt { font-size: 14px; font-weight: 700; font-family: var(--font-mono); white-space: nowrap; }
.grants .yr { display: block; font-size: 11px; color: var(--ink-3); text-align: right; font-family: var(--font-mono); }

/* ── Patents ────────────────────────────────────────────────────────────── */

.pat li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pat li:nth-child(odd) { background: var(--surface-2); }
.pat li:last-child { border-bottom: 0; }
.pat .no { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.pat .holder { display: block; font-size: 11.5px; color: var(--ink-3); }
.pat .yr { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* ── Gallery ────────────────────────────────────────────────────────────── */

.era { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.era h2 { font-size: 13px; font-weight: 700; }
.era span { font-size: 11.5px; color: var(--ink-3); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.shots button { padding: 0; border: 0; background: none; cursor: pointer; display: block; width: 100%; }

.lb { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(10, 8, 7, .88); }
.lb[hidden] { display: none; }
.lb figure { max-width: 1000px; width: 100%; }
.lb img { width: 100%; max-height: 78vh; object-fit: contain; }
.lb .photo { max-height: 70vh; }
.lb figcaption { margin-top: 10px; color: #e8e4e0; font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.lb figcaption .date { font-family: var(--font-mono); font-size: 11.5px; color: #a9a29c; }
.lb figcaption a { color: #e0a58f; font-size: 11.5px; }
.lb__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #e8e4e0; font-size: 26px; cursor: pointer; line-height: 1; }

/* ── Join ───────────────────────────────────────────────────────────────── */

.pos li { padding: 13px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 5px; }
.pos li:nth-child(odd) { background: var(--surface-2); }
.pos li:last-child { border-bottom: 0; }
.pos h3 { font-size: 13.5px; font-weight: 700; }
.pos p { font-size: 13px; color: var(--ink-2); }
.pos .when { font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 960px) {
  .dirgrid, .ncgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pat li { grid-template-columns: minmax(0, 1fr) auto; }
  .pat .no { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .dirgrid, .ncgrid, .tl { grid-template-columns: minmax(0, 1fr); }
  .logos { flex-wrap: wrap; }
}
