/* ===== Layout ===== */
#quarto-content main { max-width: 880px; margin: 0 auto; }
main h2 {
  font-size: 1.55rem; margin-top: 2.6rem; padding-bottom: .35rem;
  border-bottom: 2px solid #1E407C; scroll-margin-top: 80px;
}
:target { scroll-margin-top: 80px; }

/* Photo strips */
.photo-strip {
  height: 210px; border-radius: 10px; margin: 1rem 0 2rem;
  background-size: cover; background-position: center 55%;
}
.photo-strip.thin { height: 120px; margin: 2.8rem 0 0; }

/* About / hero */
.about { display: flex; gap: 2rem; align-items: flex-start; }
.about .headshot, .about img { width: 170px; border-radius: 10px; flex-shrink: 0; }
.about p:has(> img) { margin: 0; flex-shrink: 0; }
.about .name {
  display: block; font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.3rem; font-weight: 600; line-height: 1.1;
}
.about .role { display: block; color: #4b5563; margin-top: .3rem; }
.about-text p { line-height: 1.6; }
@media (max-width: 640px) {
  .about { flex-direction: column; align-items: center; text-align: left; }
}

/* Button-style links */
a.btn-link {
  display: inline-block; font-size: .85rem; font-weight: 500;
  padding: .25rem .7rem; margin: .15rem .25rem .15rem 0;
  border: 1px solid #1E407C; border-radius: 999px; text-decoration: none;
}
a.btn-link:hover { background: #1E407C; color: #fff; }

/* ===== Paper lists ===== */
.paper-list ul { list-style: none; padding-left: 0; }
.paper-list li { margin-bottom: 1.25rem; line-height: 1.5; }
.paper-list.compact li { margin-bottom: .7rem; }
.paper-list li a:has(strong), .paper-list li strong > a { color: #111827; text-decoration: none; }
.paper-list li a:has(strong):hover, .paper-list li strong > a:hover { color: #1E407C; text-decoration: underline; }
/* secondary links (Working paper, Appendix, DOI) as small tags */
.paper-list li > a:not(:has(strong)), .paper-list li > p > a:not(:has(strong)) {
  font-size: .8rem; padding: .05rem .45rem; border: 1px solid #cbd5e1;
  border-radius: 4px; text-decoration: none; margin-right: .2rem;
}
.paper-list li > a:not(:has(strong)):hover, .paper-list li > p > a:not(:has(strong)):hover { border-color: #1E407C; }

/* ===== Abstract toggles (carried over from my-css.css) ===== */
details.wp-abstract { margin: .3rem 0 .4rem 0; }
details.wp-abstract summary {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 500; cursor: pointer; user-select: none;
  padding: .05rem .45rem; border-radius: 4px; border: 1px solid #cbd5e1;
  list-style: none; color: #1E407C;
}
details.wp-abstract summary::-webkit-details-marker { display: none; }
details.wp-abstract summary::before { content: "▸"; }
details.wp-abstract[open] summary::before { content: "▾"; }
details.wp-abstract summary:hover { border-color: #1E407C; }
details.wp-abstract > :not(summary) { margin-top: .45rem; }
details.wp-abstract p, details.wp-abstract {
  font-size: .93rem; line-height: 1.5; color: #374151;
}

/* ===== Teaching ===== */
.course-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin: 1.2rem 0 1.5rem;
}
.course { border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem 1.1rem; }
.course p { margin-bottom: .4rem; font-size: .93rem; }
.course-tag {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: #1E407C; font-weight: 600;
}

@media (max-width: 640px) { .course-grid { grid-template-columns: 1fr; } }
.paper-list li strong, .paper-list li strong > a { font-weight: 600; }

/* Let the last section (CV) scroll to the top when clicked in the menu */
section#cv { min-height: calc(100vh - 160px); }
section.level2 { scroll-margin-top: 72px; }
