:root {
  --green: #1a5632;
  --nav-green: #286442;
  --gold: #fdb913;
  --deep-green: #033319;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  max-width: 924px;
  margin: auto;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #171717;
  background: #fff;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--deep-green); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 12px;
  background: var(--nav-green);
  border-bottom: 2px solid var(--gold);
  border-radius: 5px 5px 0 0;
}
nav a {
  color: #fff;
  padding: 4px 12px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 3px;
  font-weight: 600;
}
nav a:hover {
  color: var(--gold);
  background: var(--green);
  text-decoration: none;
}
nav a[aria-current=page] {
  color: var(--deep-green);
  background: var(--gold);
}
nav a:focus-visible { outline-color: var(--gold); }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 18px; color: var(--deep-green); }
h2 { font-size: 23px; line-height: 1.3; margin: 23px 0 15px; color: var(--deep-green); }
h3 { font-size: 18px; }
p { margin: 0 0 17px; }
section { padding: 20px 0; border-bottom: 2px dotted #dedede; }
.profile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 0;
}
.profile img {
  width: 210px;
  max-width: 30%;
  height: auto;
  margin-top: 4px;
  border-radius: 5px;
  border-bottom: 3px solid var(--gold);
}
.appointment { font-size: 19px; line-height: 1.55; }
.contact { margin-bottom: 0; }
.bio { padding-bottom: 8px; }
main > h1 { margin-top: 26px; }
ul { padding-left: 25px; }
li { margin-bottom: 8px; }
.news p { margin: 0; }
.news > li { margin-bottom: 13px; }
.news ul { margin-top: 5px; }
.highlights p { color: #444; margin-top: 4px; }
.paper { padding: 18px 0; border-bottom: 1px solid #e1e1e1; }
.paper h3 { margin: 0 0 5px; font-weight: 600; }
.paper p { margin: 4px 0; }
.paper .links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.venue { color: #555; font-size: 15px; }
details { margin-top: 8px; }
summary { color: var(--green); cursor: pointer; width: fit-content; }
summary:hover { color: var(--deep-green); }
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid #ddd;
  background: #fafafa;
  padding: 14px;
  font-size: 13px;
}
input[type=search] {
  width: 100%;
  font: inherit;
  padding: 9px 12px;
  border: 1px solid #aaa;
  border-radius: 3px;
  margin: 10px 0;
}
footer {
  text-align: center;
  color: #666;
  font-size: 14px;
  border-top: 2px dotted #ddd;
  margin-top: 30px;
  padding: 19px 0;
}
.skip { position: absolute; left: -10000px; }
.skip:focus { position: static; }
#empty { padding: 20px 0; }
@media (max-width: 560px) {
  body { padding: 15px; font-size: 16px; }
  .profile { flex-direction: column-reverse; gap: 18px; }
  .profile img { width: 180px; max-width: 100%; }
  .appointment { font-size: 17px; }
  h1 { font-size: 25px; }
  nav { gap: 4px; padding: 4px 8px; }
  nav a { padding: 4px 9px; font-size: 14px; }
  .profile p { overflow-wrap: anywhere; }
}

/* Member cards: three on desktop, two on tablets, one on phones. */
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 18px 0 30px; }
.member-card { border: 1px solid #d7ddd8; background: #fff; padding: 18px; text-align: center; min-width: 0; }
.member-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 25%; margin-bottom: 17px; }
.member-photo.is-default { object-fit: contain; padding: 18px; background: #fafbf8; }
.member-card h3 { font-size: 16px; line-height: 1.4; margin: 0 0 5px; }
.member-card h3 a { color: inherit; }
.member-card h3 a:hover { color: var(--green); }
.member-card p { font-size: 14px; line-height: 1.5; margin: 5px 0 0; }
.member-card .member-role { font-style: italic; color: #555; }
.member-card .member-email { font-size: 13px; overflow-wrap: anywhere; }
.member-card .member-description { margin-top: 9px; color: #444; }
@media (max-width: 740px) { .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .member-grid { grid-template-columns: 1fr; } .member-card { width: 100%; max-width: 340px; margin: auto; } }

/* Spacious academic gallery; bios are available by hover, tap, or keyboard. */
.group-section { padding: 8px 0 12px; border-bottom: 1px solid #e3e9e4; }
.group-section h2 { font-size: 24px; font-weight: 500; margin-top: 30px; }
.gallery-help { color: #616961; font-size: 14px; }
.member-card { padding: 14px 14px 18px; border-color: #e3e8e4; }
.member-portrait { position: relative; margin-bottom: 16px; }
.bio-toggle { display: block; position: relative; width: 100%; padding: 0; border: 0; background: #fafbf8; cursor: pointer; color: inherit; font: inherit; }
.bio-toggle:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.member-portrait .member-photo { margin: 0; }
.member-bio { position: absolute; inset: 0; padding: 18px 18px 40px; background: rgba(26, 72, 46, .96); color: #fff; overflow-y: auto; pointer-events: none; display: flex; align-items: center; }
.member-bio[hidden] { display: none; }
.member-bio p { font-size: 15px; line-height: 1.6; margin: auto; }


/* About page and persistent return-to-home link. */
nav .nav-name { margin-left: auto; border-left: 1px solid rgba(255,255,255,.35); border-radius: 0 3px 3px 0; }
.about-bio { padding-top: 0; }
.about-section { padding: 20px 0; border-bottom: 1px solid #e3e9e4; }
.about-section h2 { font-size: 25px; font-weight: 500; }
.section-intro { color: #616961; }
.cv-list { padding: 0; list-style: none; margin: 18px 0 5px; }
.cv-list li { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 18px; margin: 0 0 23px; }
.cv-year { color: var(--green); font-size: 14px; padding-top: 2px; }
.cv-list strong { font-weight: 600; }
.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; }
@media (max-width: 560px) {
 nav { gap: 2px; padding: 4px; }
 nav a { padding: 5px 6px; font-size: 13px; }
 .cv-list li { grid-template-columns: 76px minmax(0,1fr); gap: 12px; }
}

.news-date { color: var(--green); font-weight: 700; margin-right: 7px; white-space: nowrap; }
.news-archive { margin: 16px 0 8px; }
.news-archive summary { font-weight: 600; padding: 8px 0; }
.news-archive > .news { margin-top: 14px; }
.publication-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.publication-tabs a { border: 1px solid #cbd8cf; padding: 7px 12px; border-radius: 4px; font-size: 14px; }
.publication-tabs a:hover { background: #edf4ef; }
.publication-section { scroll-margin-top: 20px; border-bottom: 0; }
.member-bio { padding: 18px; }

/* Section shortcuts appear only on About. */
.about-subnav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; padding: 11px 12px; background: #f2f6f3; border-bottom: 1px solid #d7e3da; position: sticky; top: 0; z-index: 10; }
.about-subnav a { color: var(--green); font-size: 14px; font-weight: 600; padding: 3px 0; }
.about-section { scroll-margin-top: 105px; }
.talk-list li { grid-template-columns: 115px minmax(0,1fr); }
.talk-links { margin-top: 5px; font-size: 14px; }
.upcoming-label { display: inline-block; margin-left: 7px; color: var(--green); background: #edf4ef; padding: 1px 6px; border-radius: 3px; font-size: 12px; }
@media (max-width: 560px) { .about-subnav { gap: 8px 16px; } .talk-list li { grid-template-columns: 90px minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
