
:root {
  --pb-ink: #161a1d;
  --pb-muted: #667078;
  --pb-accent: #6f2435;
  --pb-accent-dark: #461520;
  --pb-accent-soft: #f4eaed;
  --pb-line: #e6e3df;
  --pb-paper: #fbfaf7;
  --pb-card: #ffffff;
}

body { color: var(--pb-ink); background: var(--pb-paper); }
.navbar { border-bottom: 1px solid rgba(0,0,0,.06); backdrop-filter: blur(10px); background: rgba(251,250,247,.94)!important; }
.navbar-title { font-weight: 750; letter-spacing: .01em; }
h1,h2,h3 { letter-spacing: -.025em; }
h2 { margin-top: 2.8rem; }
a { text-underline-offset: 3px; }

.hero-split {
  display:grid; grid-template-columns:minmax(0,1.55fr) minmax(260px,.65fr); gap:clamp(2rem,5vw,5rem);
  align-items:center; padding:5.2rem max(1rem,calc((100vw - 1160px)/2)) 4.4rem;
  margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); border-bottom:1px solid var(--pb-line);
  background:linear-gradient(120deg,#fbfaf7 0%,#f7f2ef 100%);
}
.hero-kicker { color:var(--pb-accent); text-transform:uppercase; letter-spacing:.14em; font-size:.76rem; font-weight:750; margin-bottom:.9rem; }
.hero-copy h1 { font-family:Georgia,'Times New Roman',serif; font-size:clamp(3.4rem,7vw,6.8rem); font-weight:500; line-height:.92; margin:.1rem 0 1.2rem; }
.hero-lead { font-size:clamp(1.15rem,2vw,1.48rem); line-height:1.55; max-width:800px; color:#39424a; }
.hero-meta { display:flex; gap:.65rem; flex-wrap:wrap; margin-top:1.55rem; }
.hero-photo-wrap { display:flex; justify-content:center; }
.hero-photo {
  display:block;
  width:min(100%,320px);
  height:auto;
  max-width:320px;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center;
  image-rendering:auto;
  border-radius:18px;
  box-shadow:0 24px 65px rgba(33,26,24,.14);
  border:1px solid rgba(0,0,0,.05);
}

.pill { display:inline-block; border:1px solid var(--pb-line); border-radius:999px; padding:.42rem .78rem; font-size:.9rem; background:rgba(255,255,255,.8); }
.button-row,.profile-links { display:flex; gap:.8rem; flex-wrap:wrap; margin-top:1.4rem; }
.pb-button { display:inline-block; padding:.66rem 1.02rem; border-radius:8px; text-decoration:none; font-weight:650; border:1px solid var(--pb-accent); transition:.15s ease; }
.pb-button:hover { transform:translateY(-1px); }
.pb-button.primary { background:var(--pb-accent); color:white; }
.pb-button.secondary { color:var(--pb-accent); background:white; }

.grid-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.05rem; margin:1.4rem 0 2rem; }
.card-clean { border:1px solid var(--pb-line); border-radius:14px; padding:1.4rem 1.45rem 1.25rem; background:var(--pb-card); box-shadow:0 5px 18px rgba(0,0,0,.025); }
.card-clean h3 { margin-top:0; font-size:1.12rem; }
.card-clean p:last-child { margin-bottom:0; }
a.card-clean { color:inherit; text-decoration:none; }
a.card-clean:hover { border-color:#cbb9bd; box-shadow:0 9px 28px rgba(69,28,38,.075); }

.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin:2rem 0 2.7rem; }
.stat { border-top:3px solid var(--pb-accent); padding-top:.8rem; }
.stat strong { display:block; font-size:1.62rem; line-height:1.2; }
.stat span { color:var(--pb-muted); font-size:.88rem; }

.paper-item,.timeline-item,.talk-item { padding:1rem 0 1.08rem; border-bottom:1px solid var(--pb-line); }
.paper-title { font-weight:720; margin-bottom:.22rem; }
.paper-title a { color:inherit; text-decoration:none; }
.paper-title a:hover { color:var(--pb-accent); }
.paper-meta,.muted,.talk-venue { color:var(--pb-muted); font-size:.93rem; }
.pub-compact { display:grid; grid-template-columns:2.2rem 1fr; gap:.35rem; padding:.34rem 0; line-height:1.4; }
.pub-number { color:var(--pb-muted); font-variant-numeric:tabular-nums; }
.timeline-item { display:grid; grid-template-columns:145px 1fr; gap:1rem; }
.timeline-date { color:var(--pb-accent); font-weight:700; }
.talk-title { font-weight:690; margin-bottom:.15rem; }
.older-talks { margin:1.1rem 0 1.8rem; border:1px solid var(--pb-line); border-radius:10px; background:#fff; }
.older-talks summary { cursor:pointer; padding:1rem 1.1rem; font-weight:650; color:var(--pb-accent); }
.details-inner { padding:0 1.1rem .4rem; }

.collab-feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1.4rem 0 2rem; }
.collab-feature { background:#fff; border:1px solid var(--pb-line); border-radius:12px; padding:1.25rem; }
.collab-feature h3 { margin-top:0; margin-bottom:.5rem; }
.collab-feature h3 a { color:var(--pb-ink); text-decoration:none; }
.collab-feature h3 a:hover { color:var(--pb-accent); }
.student-list > div { padding:.72rem 0; border-bottom:1px solid var(--pb-line); }
.student-list span { color:var(--pb-muted); }

.about-grid { display:grid; grid-template-columns:280px 1fr; gap:2rem; align-items:start; margin-top:1rem; }
.about-photo { width:100%; height:auto; border-radius:14px; object-fit:contain; object-position:center; }
.more-link { margin-top:1.2rem; font-weight:650; }

@media(max-width:850px){
  .hero-split{grid-template-columns:1fr; padding-top:3.4rem;}
  .hero-photo-wrap{justify-content:flex-start;}
  .hero-photo{width:min(76vw,300px);}
  .grid-cards,.stats,.collab-feature-grid{grid-template-columns:1fr;}
  .timeline-item{grid-template-columns:1fr;gap:.25rem;}
  .about-grid{grid-template-columns:1fr;}
  .about-photo{width:min(70vw,300px);}
}


/* Global prose alignment */
main p,
main li,
.hero-lead,
.card-clean p,
.about-grid > div,
.student-list span,
.talk-venue,
.paper-meta {
  text-align: justify;
  text-justify: inter-word;
}

/* Collaborator group illustration */
.collab-hero-image {
  margin: 1.5rem 0 2rem;
  text-align: center;
}
.collab-hero-image img {
  display: block;
  width: 40%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 18px 48px rgba(33,26,24,.10);
}

@media (max-width: 650px) {
  .collab-hero-image img {
    width: 78%;
    max-width: 400px;
  }
}

.pub-entry {
  display:grid;
  grid-template-columns:2.2rem minmax(0,1fr);
  gap:.45rem;
  padding:.55rem 0;
  border-bottom:1px solid var(--pb-line);
  line-height:1.42;
}
.pub-title { font-weight:650; color:var(--pb-ink); text-decoration:none; }
.pub-title:hover { color:var(--pb-accent); }
.pub-ref { color:var(--pb-muted); font-size:.92rem; }


/* Collapsible research sections */
.expandable-section.callout {
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
  margin: 1.4rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.025);
}
.expandable-section .callout-header {
  background: #fff;
  color: var(--pb-ink);
  font-weight: 700;
}
.expandable-section .callout-body-container {
  background: #fff;
}


/* Larger, more prominent expandable section headers */
.expandable-section .callout-header {
  padding: 1.05rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f2f4 100%);
  border-left: 4px solid var(--pb-accent);
}
.expandable-section .callout-title-container,
.expandable-section .callout-title {
  font-size: 1.22rem !important;
  line-height: 1.3;
  font-weight: 750 !important;
  letter-spacing: -0.015em;
  color: var(--pb-accent-dark);
}
.expandable-section .callout-toggle::before {
  transform: scale(1.15);
}
.expandable-section.callout:hover {
  border-color: #cab4ba;
  box-shadow: 0 8px 24px rgba(69,28,38,.07);
}


/* Strong visual treatment for the two Research expanders */
#quarto-document-content .expandable-section.callout {
  border: 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
  margin: 1.55rem 0 !important;
  box-shadow: 0 5px 18px rgba(69,28,38,.08) !important;
}

#quarto-document-content .expandable-section .callout-header {
  min-height: 72px;
  padding: 1.15rem 1.35rem !important;
  display: flex !important;
  align-items: center !important;
  background: linear-gradient(135deg, #f8eef1 0%, #ffffff 100%) !important;
  border-left: 6px solid var(--pb-accent) !important;
  cursor: pointer;
}

#quarto-document-content .expandable-section .callout-icon-container {
  display: none !important;
}

#quarto-document-content .expandable-section .callout-title-container {
  font-size: 1.48rem !important;
  line-height: 1.15 !important;
  font-weight: 760 !important;
  letter-spacing: -0.025em !important;
  color: var(--pb-accent-dark) !important;
}

#quarto-document-content .expandable-section .callout-btn-toggle {
  margin-left: .8rem !important;
}

#quarto-document-content .expandable-section .callout-toggle {
  font-size: 1.35rem !important;
}

#quarto-document-content .expandable-section .callout-body {
  padding: 1.15rem 1.35rem 1.35rem !important;
}

#quarto-document-content .expandable-section .callout-header:hover {
  background: linear-gradient(135deg, #f2e2e7 0%, #fff 100%) !important;
}

@media (max-width: 650px) {
  #quarto-document-content .expandable-section .callout-title-container {
    font-size: 1.28rem !important;
  }
  #quarto-document-content .expandable-section .callout-header {
    min-height: 64px;
    padding: 1rem 1.05rem !important;
  }
}


/* Native HTML research expanders */
.research-expander {
  margin: 1.6rem 0;
  border: 1px solid #d8c8cd;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(69,28,38,.07);
  overflow: hidden;
}

.research-expander > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.25rem 3.5rem 1.25rem 1.4rem;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--pb-accent-dark);
  background: linear-gradient(135deg, #f5e8ec 0%, #ffffff 100%);
  border-left: 6px solid var(--pb-accent);
  transition: background .15s ease, color .15s ease;
}

.research-expander > summary::-webkit-details-marker {
  display: none;
}

.research-expander > summary::after {
  content: "+";
  position: absolute;
  right: 1.35rem;
  top: 50%;
  transform: translateY(-52%);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--pb-accent);
}

.research-expander[open] > summary::after {
  content: "−";
}

.research-expander > summary:hover {
  background: linear-gradient(135deg, #eedce2 0%, #fff 100%);
}

.research-expander-body {
  padding: 1.25rem 1.45rem 1.5rem;
  border-top: 1px solid var(--pb-line);
}

.research-expander-body > :first-child {
  margin-top: 0;
}

@media(max-width:650px) {
  .research-expander > summary {
    font-size: 1.28rem;
    padding: 1.05rem 3rem 1.05rem 1.05rem;
  }
  .research-expander-body {
    padding: 1rem;
  }
}
