/* ── Reset & Base ──────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 14px;
      line-height: 1.7;
      color: #757575;
      background: #f5f5f5;
    }
    a { color: #535353; text-decoration: none; }
    a:hover { text-decoration: underline; }
    p { margin-bottom: 1em; }
    p:last-child { margin-bottom: 0; }

    /* ── Site wrapper ──────────────────────────────────────────── */
    .site-wrap {
      max-width: 1050px;
      margin: 28px auto 0;   /* 28px gray gap above the white column */
      background: #ffffff;
    }

    /* ── Header / Logo area (CA1 — white) ──────────────────────── */
    .site-header {
      text-align: center;
      padding: 12px 28px 0;   /* side padding replaces old site-wrap padding */
    }
    .site-title {
      font-family: Georgia, serif;
      font-size: 2.4rem;       /* ~33.6px matching CA1 h1 */
      font-weight: normal;
      letter-spacing: 0.01em;
      margin-bottom: 10px;
    }
    .site-title a {
      color: #535353;
      text-decoration: none;
    }
    .site-title a:hover { text-decoration: none; color: #535353; }

    /* ── Navigation bar (CA2 — #ededed gray) ───────────────────── */
    nav {
      text-align: center;
      background: #ffffff;   /* white — fully integrated with header */
      padding: 0px 0;
    }
    .nav-desktop { display: flex; justify-content: center; align-items: center; gap: 0; }
    .nav-desktop a {
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 1.125rem;    /* 18px */
      font-weight: normal;
      color: #535353;
      padding: 4px 18px;
    }
    .nav-desktop a:hover { text-decoration: underline; }
    .nav-desktop a.active { color: #353535; }
    .nav-sep {
      color: #aaa;
      font-size: 1rem;
      line-height: 1;
    }

    /* ── Divider (below nav, matches CA1 HR color) ─────────────── */
    .site-divider {
      border: none;
      border-top: 1px solid #bababa;
      margin: 0 0 28px;
    }

    /* ══════════════════════════════════════════════════════════
       HOME PAGE
    ══════════════════════════════════════════════════════════ */
    .home-layout {
      display: flex;
      gap: 36px;
      align-items: flex-start;
      margin-bottom: 40px;
    }
    .home-sidebar {
      flex-shrink: 0;
      width: 211px;
      background: #47717a;   /* CA3 exact background */
    }
.photo-box {
  width: 211px;
  height: 260px;
  background: #47717a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
  padding: 14px;  /* Add this line for breathing space */
}
    .photo-box img { width: 100%; height: 100%; object-fit: cover; }
    .photo-placeholder {
      color: #acc7cc;         /* CA3 body text color */
      font-family: Georgia, serif;
      font-size: 0.82rem;
      text-align: center;
      padding: 12px;
    }
    .sidebar-info {
      font-family: Georgia, serif;
      font-size: 0.875rem;    /* 14px */
      color: #acc7cc;         /* CA3 body text */
      padding: 12px 14px 16px;
    }
    .sidebar-info p { margin-bottom: 0.3em; }
    .sidebar-info .label { font-weight: bold; color: #edf1f2; margin-top: 10px; margin-bottom: 1px; }
    .sidebar-info a { color: #ededed; text-decoration: none; }
    .sidebar-info a:hover { text-decoration: underline; }
    .sidebar-divider { border: none; border-top: 1px solid #8fb4bb; margin: 10px 0 8px; }
    /* social icons below bio */
    .social-icons { display: flex; gap: 8px; margin-top: 14px; }
    .social-icon {
      width: 34px; height: 34px;
      background: #757575;
      border-radius: 4px;
      display: flex; align-items: center; justify-content: center;
      color: white;
      font-family: Arial, sans-serif;
      font-size: 0.75rem;
      font-weight: bold;
      text-decoration: none;
    }
    .social-icon.linkedin { background: #0077b5; }
    .social-icon.twitter  { background: #1da1f2; }
    .social-icon:hover { opacity: 0.85; text-decoration: none; }

    /* CA1 white content wrapper */
    .content-area {
      background: #ffffff;
      padding: 28px;
    }
    .home-bio { flex: 1; font-size: 0.875rem; color: #757575; }
    .home-bio p { margin-bottom: 1em; }

    /* ══════════════════════════════════════════════════════════
       CV PAGE
    ══════════════════════════════════════════════════════════ */
    .cv-page-title {
      text-align: left;
      font-family: Georgia, serif;
      font-size: 0.4rem;
      font-weight: normal;
      text-transform: uppercase;
      color: #777;
      margin-bottom: 18px;
    }
.cv-page-title {
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}
    /* PDF download box */
.pdf-download {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 28px;
}

.pdf-icon {
  display: none;   /* kill the red box */
}

.pdf-info {
  font-family: Georgia, serif;
}

.pdf-info .pdf-name a {
  font-weight: 600;
  color: #3f6b73;
}
    /* CV sections */
    .cv-section { margin-bottom: 28px; }
    .cv-section-title {
      font-family: Georgia, serif;
      font-size: 1.4rem;      /* ~22.4px matching CA1 h2 */
      font-weight: normal;
      color: #535353;
      margin-bottom: 10px;
    }
    /* Plain employment / education lines */
    .cv-line {
      font-size: 0.875rem;
      color: #757575;
      margin-bottom: 3px;
      font-family: Georgia, serif;
    }

    /* ── Paper entries — two-line layout ──────────────────────── */

    .paper-entry {
      margin-bottom: 16px;
      padding: 10px 0 10px 14px;
  border-left: none;
  padding-left: 0;
      border-bottom: 1px solid #eee;
    }
.paper-entry:hover {
  background: #f8faf9;
}
    .paper-title-line {
      font-family: Georgia, serif;
      font-size: 1rem;         
      line-height: 1.45;
      margin-bottom: 4px;
    }
    .paper-title-link {
      color: #2f2f2f;
      font-weight: 500;
    }
    .paper-title-link:hover { text-decoration: underline; }
    .paper-meta-line {
      font-family: Georgia, serif;
      font-size: 0.8rem;
      color: #999999;
      line-height: 1.5;
    }
    .paper-meta-line em { font-style: italic; color: #888888; }
    .paper-award-chip {
      display: inline-block;
      background: #fdf7e8;
      color: #8a8a8a;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 0.82rem;
      padding: 1px 9px 2px;
      border-radius: 10px;
      margin-top: 5px;
    }

    /* ── Paper toggles — <details>/<summary>, zero JS ────────── */
    .paper-toggles {
      margin-top: 8px;
      display: flex;
      align-items: flex-start;
      gap: 0;
    }
    .toggle-sep { color: #ccc; font-size: 0.8rem; margin: 0 8px; line-height: 1.8; }
    details.paper-detail > summary {
      cursor: pointer;
      font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  color: #3f6b73;

  background: #eef5f3;
  padding: 3px 10px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
      list-style: none;
      user-select: none;
    }
    details.paper-detail > summary::-webkit-details-marker { display: none; }
    details.paper-detail > summary::marker { display: none; }
    details.paper-detail > summary::before {
      content: "▶";
      font-size: 0.65rem;
      display: inline-block;
      margin-right: 5px;
      transition: transform 0.2s;
    }
    details.paper-detail[open] > summary::before { transform: rotate(90deg); }
    .collapsible {
      margin-top: 10px;
      padding: 14px 18px;
      border-left: 3px solid #d0dce8;
      background: #f8fafd;
      font-size: 0.91rem;
      line-height: 1.7;
      font-family: Arial, Helvetica, sans-serif;
      color: #444;
    }

    /* Figure grid */
.fig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.fig-item { 
  text-align: center;
}
    .fig-placeholder {
      width: 100%;
      max-width: 400px;
      background: #eaeff5;
      border: 1px dashed #b0becc;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #8899aa;
      font-size: 0.78rem;
      margin-bottom: 6px;
    }
    .fig-placeholder svg { margin-bottom: 6px; opacity: 0.4; }
    .fig-caption {
      font-size: 0.78rem;
      color: #777;
      font-style: italic;
    }

    /* Brief entries (book chapters, briefs, etc.) */
    .brief-entry {
      margin-bottom: 12px;
      font-size: 0.875rem;
      font-family: Georgia, serif;
      color: #757575;
    }
    .brief-entry a { color: #535353; }

    /* Awards */
    .award-line {
      font-family: Georgia, serif;
      font-size: 0.875rem;
      color: #757575;
      margin-bottom: 4px;
    }

    /* Referee grid */
    .referee-list {
      font-family: Georgia, serif;
      font-size: 0.875rem;
      color: #757575;
      columns: 2;
      column-gap: 24px;
      line-height: 2;
    }

    /* ══════════════════════════════════════════════════════════
       SHED PAGE
    ══════════════════════════════════════════════════════════ */
    .shed-page { font-size: 0.875rem; color: #757575; }
    .shed-page h2 {
      font-family: Georgia, serif;
      font-size: 1.4rem;      /* CA1 h2 */
      font-weight: normal;
      color: #535353;
      margin: 20px 0 8px;
    }
    .shed-tool-box {
      border: 1px solid #c8d4d6;
      border-left: 4px solid #47717a;
      padding: 18px 20px;
      margin: 20px 0;
      background: #f0f5f6;
    }
    .shed-tool-box p { font-family: Georgia, serif; font-size: 0.875rem; color: #757575; }
    .shed-reports-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 10px;
      margin-top: 10px;
    }
    .shed-report-link {
      font-family: Georgia, serif;
      font-size: 0.875rem;
      color: #535353;
      padding: 6px 2px;
      border-bottom: 1px solid #ddd;
      display: block;
    }
    .shed-report-link:hover { text-decoration: underline; }

    /* ── Footer (CA4 — white, Georgia, #757575) ────────────────── */
    .site-footer {
      margin-top: 48px;
      background: #ffffff;
      border-top: 1px solid #bababa;
      padding: 16px 0 28px;
      text-align: center;
      font-family: Georgia, serif;
      font-size: 0.8125rem;   /* 13px matching CA4 */
      color: #757575;
    }
    .site-footer a { color: #757575; }

    /* ── Responsive ────────────────────────────────────────────── */
    @media (max-width: 640px) {
      .site-title { font-size: 1.8rem; }
      .nav-desktop { flex-direction: column; gap: 2px; }
      .nav-desktop .nav-sep { display: none; }
      .home-layout { flex-direction: column; }
      .home-sidebar { width: 100%; }
      .photo-box { width: 100%; height: 220px; }
      .fig-grid { grid-template-columns: 1fr; }
      .referee-list { columns: 1; }
      .shed-reports-grid { grid-template-columns: 1fr; }
    }


/* ══════════════════════════════════════════════════════════
   RESEARCH PAGE REFINEMENT LAYER (REVISED)
══════════════════════════════════════════════════════════ */

/* ── Global readability ───────────────────────────────── */
body {
  color: #666;
}

/* ── Section spacing ─────────────────────────────────── */
.cv-section {
  margin-bottom: 36px;
}

.cv-section-title {
  margin-bottom: 14px;
}

/* ── Paper entries ───────────────────────────────────── */
.paper-entry {
  margin-bottom: 28px;
  padding: 10px 0 10px 14px;
  border-left: 2px solid #6f9aa2;
  border-bottom: 1px solid #eee;
  transition: background 0.15s ease;
}

.paper-entry:hover {
  background: #f9fbfd;
}

/* ── Title hierarchy ─────────────────────────────────── */
.paper-title-line {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 4px;
}

.paper-title-link {
  font-weight: 500;
  color: #2f2f2f;
  text-decoration: none; /* restore original feel */
}

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

/* ── Metadata ────────────────────────────────────────── */
.paper-meta-line {
  font-size: 0.82rem;
  color: #8a8a8a;
}

.paper-meta-line em {
  color: #7a7a7a;
}

/* ── Award chip ─────────────────────────────────────── */
.paper-award-chip {
  margin-top: 6px;
  font-size: 0.7rem;
}

/* ── Toggles ────────────────────────────────────────── */
.paper-toggles {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-sep {
  display: none;
}

details.paper-detail > summary {
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  color: #3f6b73;

  background: #eef5f3;
  padding: 3px 10px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
}

details.paper-detail > summary:hover {
  background: #d9ebe6;
}

details.paper-detail > summary::before {
  content: "▶";
  font-size: 0.6rem;
  margin-right: 6px;
  transition: transform 0.2s;
}

details.paper-detail[open] > summary::before {
  transform: rotate(90deg);
}

/* ── Collapsible ────────────────────────────────────── */
.collapsible {
  margin-top: 10px;
  padding: 14px 18px;

  border-left: 3px solid #d0dce8;
  background: #f8fafd;

  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);

  font-size: 0.9rem;
  line-height: 1.7;
  font-family: Arial, Helvetica, sans-serif;
  color: #444;
}

/* ── Figures ────────────────────────────────────────── */
.fig-grid {
  gap: 12px;
}

.fig-placeholder {
  background: #f1f4f8;
  border: 1px dashed #c5d0dc;
}

.fig-caption {
  font-size: 0.75rem;
  color: #666;
}

/* ═════════════════════════════════════════════════════
   MATCH LOWER SECTIONS TO PUBLICATIONS
═════════════════════════════════════════════════════ */

/* Apply paper-entry style to brief + awards */
.brief-entry,
.award-line {
  margin-bottom: 20px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid #6f9aa2;
  border-bottom: 1px solid #eee;

  font-size: 0.875rem;
  font-family: Georgia, serif;
  color: #666;
}

/* Slightly tighter spacing within lists */
.brief-entry:last-child,
.award-line:last-child {
  border-bottom: none;
}

/* Links in these sections */
.brief-entry a {
  color: #535353;
  text-decoration: none;
}

.brief-entry a:hover {
  text-decoration: underline;
}

/* ═════════════════════════════════════════════════════
   PDF DOWNLOAD — EMPHASIZED BUT CONSISTENT
═════════════════════════════════════════════════════ */

.pdf-download {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 16px;
  margin-bottom: 32px;

  border-left: 3px solid #47717a;
  border: 1px solid #d8e2ec;
  background: #f4faf8;

  border-radius: 6px;
}

/* Bring back icon but tone it down */
.pdf-icon {
  display: flex;
  width: 44px;
  height: 52px;
  background: #47717a; 
  border-radius: 3px;

  align-items: center;
  justify-content: center;

  font-size: 0.7rem;
}

.pdf-icon .pdf-label {
  font-size: 0.85rem;
  color: #FFFFFF;
}

.pdf-info .pdf-name a {
  font-weight: 600;
  color: #2f2f2f;
}

.pdf-info .pdf-name a {
  font-weight: 600;
  color: #2f2f2f;
}


/* Text styling */
.pdf-info {
  font-family: Georgia, serif;
}

.pdf-info .pdf-name a {
  font-weight: 600;
  color: #2f2f2f;
}

.pdf-info .pdf-meta {
  font-size: 0.8rem;
  color: #777;
}

/* Hover effect (subtle) */
.pdf-download:hover {
  background: #eef5f3;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .paper-entry,
  .brief-entry,
  .award-line {
    padding-left: 10px;
  }

  .paper-title-line {
    font-size: 0.95rem;
  }
}