/* ===================================================================
   Sidi M. Sawadogo — academic site, v2 "modern sidebar"
   Self-contained: does NOT import style_all.css
   =================================================================== */

:root {
  --ink: #1a1a1a;
  --muted: #5f5e5a;
  --faint: #8a897f;
  --accent: #3c3489;
  --accent-mid: #534ab7;
  --accent-soft: #eeedfe;
  --green-dark: #085041;
  --green-soft: #e1f5ee;
  --bg: #fdfdfb;
  --surface: #ffffff;
  --sidebar-bg: #f7f6f3;
  --line: #e8e6e0;
  --radius: 12px;
  box-sizing: border-box;
}

* { box-sizing: inherit; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- layout ---------- */

.layout {
  display: flex;
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 28px 32px;
}

.main { flex: 1; min-width: 0; }

/* ---------- sidebar ---------- */

.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 40px;
  align-self: flex-start;
  background: var(--sidebar-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
}

.sidebar .avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
}

.sidebar h1 {
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}

.sidebar .role {
  font-size: 0.88em;
  color: var(--muted);
  margin-bottom: 2px;
}

.sidebar .role a { color: var(--muted); text-decoration: underline; }
.sidebar .role a:hover { color: var(--accent-mid); }

.jm-chip {
  display: inline-block;
  margin: 12px 0 4px;
  padding: 5px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.side-nav {
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.side-nav li { margin: 2px 0; }

.side-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95em;
}

.side-nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.side-nav a.active { background: var(--accent-soft); color: var(--accent); }

.side-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.side-links a { color: var(--muted); display: inline-flex; }
.side-links a:hover { color: var(--accent); }
.side-links svg { width: 21px; height: 21px; }

.side-doc-links { margin-top: 14px; display: flex; gap: 10px; justify-content: center; }

.side-doc-links a {
  font-size: 0.82em;
  font-weight: 700;
  padding: 5px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
}

.side-doc-links a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---------- section headings ---------- */

.kicker {
  font-size: 0.74em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}

.section { margin-bottom: 44px; }

.section h2 {
  font-size: 1.45em;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- intro ---------- */

.intro p { margin-bottom: 14px; }
.intro p:last-child { margin-bottom: 0; }

/* ---------- paper cards ---------- */

.paper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
}

.paper.featured { border: 2px solid var(--accent-mid); }

.paper-tags { margin-bottom: 10px; }

.tag {
  display: inline-block;
  font-size: 0.74em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 999px;
  margin-right: 8px;
}

.tag-jmp { background: var(--accent); color: #fff; }
.tag-award { background: var(--green-soft); color: var(--green-dark); }
.tag-status { background: var(--accent-soft); color: var(--accent); }

.paper h3 {
  font-size: 1.18em;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.paper h3 a { color: var(--ink); }
.paper h3 a:hover { color: var(--accent-mid); }

.paper .byline {
  font-size: 0.85em;
  color: var(--muted);
  margin-bottom: 12px;
}

.paper details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  color: var(--accent-mid);
  list-style: none;
}

.paper details summary::-webkit-details-marker { display: none; }
.paper details summary::after { content: " +"; }
.paper details[open] summary::after { content: " \2212"; }

.paper details p {
  font-size: 0.93em;
  color: #3a3a36;
  margin-top: 10px;
  line-height: 1.6;
}

.paper-links { margin-top: 14px; }

.paper-links a {
  display: inline-block;
  font-size: 0.84em;
  font-weight: 700;
  padding: 6px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  margin-right: 8px;
  margin-top: 4px;
}

.paper-links a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---------- two-column info (interests / education) ---------- */

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
}

.interest-list { list-style: none; }

.interest-list li {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  margin: 0 6px 8px 0;
  font-size: 0.88em;
}

.edu-list { list-style: none; }

.edu-list li {
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--accent-soft);
  margin-bottom: 4px;
}

.edu-list .degree { font-weight: 600; }
.edu-list .inst { font-size: 0.88em; color: var(--muted); }

/* ---------- references ---------- */

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.ref-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.9em;
  line-height: 1.55;
}

.ref-card .name { font-weight: 700; }
.ref-card a { font-size: 0.92em; word-break: break-all; }

/* ---------- awards & presentations ---------- */

.award-list { list-style: none; }

.award-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95em;
}

.award-list li:first-child { border-top: 0; }

.award-list .yr {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.92em;
}

.pres-list { list-style: none; }

.pres-list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95em;
  line-height: 1.55;
}

.pres-list li:first-child { border-top: 0; }

.yr-lead {
  font-weight: 700;
  color: var(--accent);
  margin-right: 10px;
}

/* ---------- teaching ---------- */

.teach-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
}

.teach-block h3 { font-size: 1.12em; font-weight: 700; }

.teach-block .where {
  font-size: 0.85em;
  color: var(--muted);
  margin: 2px 0 12px;
}

.teach-block ul { list-style: none; }

.teach-block ul li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95em;
}

.teach-block ul li:first-child { border-top: 0; }

.teach-block .term { color: var(--muted); font-size: 0.92em; }

/* ---------- footer ---------- */

.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 28px 36px;
  font-size: 0.82em;
  color: var(--faint);
  text-align: center;
}

/* ---------- responsive ---------- */

@media screen and (max-width: 860px) {
  .layout {
    flex-direction: column;
    gap: 32px;
    padding: 28px 18px 24px;
  }

  .sidebar {
    position: static;
    width: 100%;
  }

  .side-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .side-nav li { margin: 0; }

  .info-grid { grid-template-columns: 1fr; }
}

/* ---------- print ---------- */

@media print {
  .sidebar { position: static; }
  .paper, .teach-block, .ref-card { break-inside: avoid; }
}
