/* ===== Base ===== */
html, body { overflow-x: hidden; }

body {
  margin: 2em auto;
  padding: 0 2em;
  max-width: 940px;
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
  color: #000;
  overflow-wrap: break-word;
}

a        { color: #0056b3; text-decoration: none; }
a:hover  { text-decoration: underline; }

ul {
  list-style: disc;
  margin: 0.3em 0 0;
  padding-left: 1em;
}
li { margin: 0.35em 0; }

/* ===== Sections ===== */
.section { clear: both; margin-bottom: 1.5em; }
.section h2 {
  margin: 1.5em 0 0.3em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #000;
}
.paper { margin: 0.5em 0 1em; }

/* ===== Header ===== */
.header {
  margin: 1em 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-photo {
  max-height: 140px;
  max-width: 100%;
  width: auto;
  height: auto;
}
.header-info .name {
  font-size: 20pt;
  font-weight: bold;
  line-height: 1.2;
  display: block;
}
.header-info span {
  display: block;
  line-height: 1.4;
}
.header-info .links {
  margin-top: 0.3em;
  display: flex;
  gap: 20px;
}
.mobile-only hr {
  border: 0;
  border-top: 1px solid #000;
  margin: 0.4em 0;
}

/* ===== Responsive ===== */
.desktop-only { display: block; }
.mobile-only  { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only  { display: block; }

  body { padding: 0 1em; margin: 1em auto; }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 0.75em;
  }
  .mobile-only.header-info { text-align: center; }
  .mobile-only .links { justify-content: center; }
}

/* ===== Publications ===== */
.paper--pubs .pubs    { margin-left: 1.25rem; }
.paper--pubs .pub     { line-height: 1.5; margin-bottom: 1.2em; }
.pub .tag             { font-weight: 700; color: #1772d0; }
.pub .l1 em           { font-style: italic; }
.pub .l2 .me          { font-weight: 700; text-decoration: underline; }
.pub .award           { font-weight: bold; color: #f50505; }
.paper--pubs .links a       { color: #4a4a4a; font-style: italic; }
.paper--pubs .links a:hover { color: #000; text-decoration: underline; }

/* ===== Utilities ===== */
.justify { text-align: justify; }
.cv-link { font-weight: 700; font-style: italic; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
