/* Shared stylesheet */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Open Sans", -apple-system, "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: #2b2b2b;
  background: #ffffff;
}
a { color: #21618c; }
a:hover { color: #163f5c; }

/* ── top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}
.topbar .in {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px;
}
.topbar .brand { font-size: 1.2rem; font-weight: 700; color: #222; text-decoration: none; }
.topbar nav { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar nav a { color: #444; text-decoration: none; font-size: 1rem; }
.topbar nav a:hover { color: #21618c; }
.topbar nav a.here { color: #111; font-weight: 700; }

/* ── banner ── */
.banner { width: 100%; height: 330px; overflow: hidden; background: #f1ece1; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── layout ── */
.layout {
  max-width: 1150px; margin: 0 auto;
  display: flex; gap: 52px;
  padding: 0 28px 56px;
}
.sidebar { width: 240px; flex-shrink: 0; }
.avatar {
  width: 200px; height: 200px; border-radius: 50%;
  object-fit: cover; display: block;
  margin-top: -100px;
  border: 6px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  background: #fff;
}
.sidebar h3 { font-size: 1.3rem; font-weight: 700; color: #222; margin-top: 18px; line-height: 1.3; }
.sidebar .role { color: #666; margin-top: 2px; font-size: 0.98rem; }
.sidebar .email { display: inline-block; margin-top: 18px; font-size: 0.98rem; }
.sidebar .dept { margin-top: 18px; color: #444; font-size: 0.98rem; line-height: 1.5; }
.sidebar ul.plinks { list-style: none; margin-top: 22px; }
.sidebar ul.plinks li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sidebar ul.plinks svg { width: 16px; height: 16px; fill: #555; flex-shrink: 0; }
.sidebar ul.plinks a { font-size: 0.98rem; }

main { flex: 1; padding-top: 48px; min-width: 0; }
main h1 { font-size: 2.6rem; font-weight: 700; color: #222; line-height: 1.15; margin-bottom: 16px; }
.lead { font-size: 1.18rem; color: #4a4a4a; margin-bottom: 26px; }
main p { margin-bottom: 18px; }
main p b { color: #1f1f1f; }

/* ── entries ── */
.entry { display: flex; gap: 24px; margin-bottom: 38px; }
.entry .thumb {
  width: 210px; flex-shrink: 0;
  align-self: flex-start;
  border: 1px solid #e3e3e3;
}
.entry .thumb img { width: 100%; height: 140px; object-fit: cover; display: block; }
.entry .body { min-width: 0; }
.entry .body h2 { margin-bottom: 4px; font-size: 1.22rem; line-height: 1.35; }
.entry .body h2 a { font-weight: 700; }
.entry .authors { font-size: 0.98rem; color: #333; }
.entry .authors b { font-weight: 700; }
.entry .venue { font-size: 0.95rem; color: #777; margin-bottom: 8px; }
.entry .desc { font-size: 0.98rem; color: #3d3d3d; margin-bottom: 10px; }
.btn {
  display: inline-block; margin-right: 8px; margin-top: 2px;
  border: 1px solid #c4c4c4; border-radius: 4px;
  padding: 4px 14px; font-size: 0.88rem;
  color: #333; text-decoration: none; background: #fff;
}
.btn:hover { border-color: #21618c; color: #21618c; }

/* ── note form ── */
.noteform { max-width: 520px; margin-top: 8px; }
.noteform label { display: block; font-weight: 600; font-size: 0.95rem; margin: 14px 0 4px; color: #333; }
.noteform input, .noteform textarea {
  width: 100%; padding: 9px 12px; font: inherit; font-size: 0.95rem;
  border: 1px solid #c9c9c9; border-radius: 4px; background: #fff; color: #222;
}
.noteform input:focus, .noteform textarea:focus { outline: none; border-color: #21618c; }
.noteform textarea { min-height: 130px; resize: vertical; }
.noteform button {
  margin-top: 16px; padding: 9px 26px; font: inherit; font-size: 0.95rem; font-weight: 600;
  color: #fff; background: #21618c; border: 0; border-radius: 4px; cursor: pointer;
}
.noteform button:hover { background: #174a6c; }
.noteform .status { font-size: 0.9rem; margin-top: 10px; color: #3d7a55; }

/* ── footer ── */
footer {
  background: #f4f4f4; border-top: 1px solid #e8e8e8;
  padding: 30px 20px; text-align: center;
  font-size: 0.92rem; color: #555;
}

@media (max-width: 800px) {
  .banner { height: 220px; }
  .layout { flex-direction: column; gap: 10px; }
  .sidebar { width: 100%; text-align: center; }
  .avatar { margin: -80px auto 0; }
  .sidebar ul.plinks li { justify-content: center; }
  main { padding-top: 10px; }
  main h1 { font-size: 2rem; }
  .entry { flex-direction: column; }
  .entry .thumb { width: 100%; }
  .entry .thumb img { height: 180px; }
  .topbar .in { padding: 12px 16px; }
  .topbar nav { gap: 16px; }
}
