/* ── Layout ── */

body {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.7;
  background: #fff;
}

/* Remove Quarto's default navbar */
.navbar { display: none !important; }

/* Remove default page padding from Quarto */
#quarto-content {
  padding-top: 0 !important;
}

.page-full .quarto-title-block { display: none; }

/* Main content area: constrain width and center */
#quarto-document-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

/* ── Top section: bio left, photo right ── */

.top-section {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.bio {
  flex: 1 1 0;
}

.headshot {
  flex: 0 0 220px;
  padding-top: 0.25rem;
}

.headshot img {
  width: 100%;
  display: block;
}

/* ── Typography ── */

h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* Name heading is larger */
.bio h2:first-child {
  font-size: 1.4rem;
}

p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

/* ── Section dividers ── */

hr {
  border: none;
  border-top: 1px solid #d0d5dd;
  margin: 1.6rem 0;
}

/* ── Contact icon links ── */

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  align-items: center;
}

.contact-links a {
  color: #555;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* Academicons render slightly smaller — nudge them up to match */
.contact-links a .ai {
  font-size: 1.55rem;
}

.contact-links a:hover {
  color: #1a1a1a;
}

/* ── Paper titles: bold, normal size, black, no underline ── */

strong > a {
  color: #1a1a1a !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 700;
}

strong > a:hover {
  text-decoration: underline !important;
}

/* Journal name on its own line */
.journal {
  display: block;
  margin-top: 0.1rem;
}

/* ── News / publications ── */

ul {
  padding-left: 1.2rem;
  margin-top: 0.3rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Paper entries */
.coauthors {
  display: inline;
  font-size: 0.9rem;
  font-weight: normal;
  color: #555;
}

.coauthors a {
  color: #2a5fa5;
  text-decoration: none;
}

.coauthors a:hover {
  text-decoration: underline;
}

.paper-link {
  color: #2a5fa5;
  text-decoration: none;
  font-size: 0.9rem;
}

.paper-link:hover {
  text-decoration: underline;
}

.venues {
  display: block;
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  margin-top: 0.1rem;
}

/* ── Foldable abstract/findings ── */

details {
  margin-top: 0.45rem;
  margin-bottom: 0.9rem;
}

summary {
  cursor: pointer;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  color: #2a5fa5;
  user-select: none;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "▸ ";
  font-size: 0.75rem;
}

details[open] summary::before {
  content: "▾ ";
}

summary:hover {
  text-decoration: underline;
}

details > p {
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.65;
  padding-left: 0.9rem;
  border-left: 2px solid #e0e0e0;
}

/* Explicit key finding for publications */
.finding {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.65;
  margin-top: 0.3rem;
  margin-bottom: 0.2rem;
  padding-left: 0.9rem;
  border-left: 2px solid #e0e0e0;
}

.media-links {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.3rem;
  margin-bottom: 0.9rem;
  padding-left: 0.9rem;
}

.media-links a {
  color: #2a5fa5;
  text-decoration: none;
}

.media-links a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .top-section {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }
  .headshot {
    flex: 0 0 auto;
    width: 160px;
  }
}
