/* Meng Hao — Academic homepage styles
   Palette: black text, blue accents. */

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  color: #000000;
  background-color: #ffffff;
  margin: 0;
  padding: 0 1.5rem;
  line-height: 1.6;
}

/* Content column */
.intro {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Headings */
h2 {
  margin-top: 30px;
  margin-bottom: 14px;
  color: #000000;
  font-size: 30px;
  font-weight: normal;
}

h3 {
  margin-top: 30px;
  margin-bottom: 14px;
  color: #000000;
  font-size: 26px;
  font-weight: normal;
  display: inline-block;
}

h4 {
  color: #1a5f8f; /* dark blue */
  font-size: 20px;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 10px;
}

p {
  margin: 0;
}

/* Portrait */
.portrait {
  float: right;
  max-width: 150px;
  height: auto;
  margin: 8px 0 20px 30px;
}

/* Research list */
.research-list {
  margin: 10px 0 0 0;
  padding-left: 24px;
  line-height: 1.55;
}

.research-list li {
  margin-bottom: 8px;
}

.research-list li::marker {
  color: #2471A3;
}

.research-list strong {
  color: #333333;
  font-weight: 600;
}

/* Section header */
.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.section-header h3 {
  margin-top: 30px;
  margin-bottom: 0;
}

/* Publication entries */
.pub-stats {
  color: #1a5fb4;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.top-venue {
  color: #1a5fb4;
}

.pub-note {
  color: #555555;
  font-size: 15px;
  margin-bottom: 6px;
}

.pub {
  padding-left: 20px;
  margin-bottom: 14px;
}

.pub .title {
  color: #333333;
  font-weight: 600;
}

.pub .author {
  color: #000000;
  font-weight: normal;
}

.pub .venue {
  color: #000000;
  font-weight: normal;
}

.details {
  color: #000000;
  font-weight: normal;
  white-space: nowrap;
}

/* Collapsible publication topics */
.pub-topic {
  margin-top: 14px;
}

.pub-topic > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 4px 0;
}

.pub-topic > summary::-webkit-details-marker {
  display: none;
}

.pub-topic > summary::marker {
  content: "";
}

.pub-topic > summary h4 {
  margin: 0;
}

.pub-topic .toggle {
  display: inline-block;
  margin-right: 8px;
  color: #2471A3;
  transition: transform 0.2s ease;
}

.pub-topic[open] .toggle {
  transform: rotate(90deg);
}

.pub-topic > summary:hover h4 {
  color: #3498DB;
}

.pub-topic .pub:last-child {
  margin-bottom: 4px;
}

/* Links */
a:link,
a:visited {
  color: #2471A3;
  text-decoration: none;
}

a:hover {
  color: #3498DB;
}

/* Section divider */
.section-divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  width: 70%;
  margin: 24px auto;
}

/* Mobile: let the column shrink and unfloat the portrait */
@media (max-width: 700px) {
  body {
    font-size: 16px;
    padding: 0 1rem;
  }
  .portrait {
    float: none;
    display: block;
    margin: 10px auto;
    max-width: 120px;
  }
  .details {
    white-space: normal;
  }
}
