/* ===== Base Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #f0f0f0;
  line-height: 1.5;
}

a {
  color: #444;
  text-decoration: none;
}

a:hover {
  color: #222;
  text-decoration: underline;
}

/* ===== Header ===== */
.site-header {
  background: #fff;
  color: #333;
  padding: 30px 0 20px;
  text-align: center;
}

.site-header .site-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.site-header .site-title a {
  color: #333;
  text-decoration: none;
}

.site-header .site-description {
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 4px;
  color: #666;
}

/* ===== Navigation ===== */
nav {
  background: #862633;
  padding: 0;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
}

nav ul li a {
  display: block;
  color: #fff;
  padding: 12px 24px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: #a03040;
  text-decoration: none;
}

/* ===== Main Content ===== */
.content-area {
  max-width: 1110px;
  margin: 30px auto;
  background: #fff;
  padding: 40px 50px;
}

/* ===== CV Embed ===== */
.cv-page .content-area {
  max-width: 1150px;
}

.cv-embed {
  width: 100%;
  height: 90vh;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* ===== Home Page ===== */
.welcome-section {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.welcome-section .photo-section {
  flex-shrink: 0;
  text-align: left;
}

.welcome-section .photo-name {
  margin-top: 20px;
  margin-bottom: 2px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #666;
}

.welcome-section .photo-affiliation {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 16px;
}

.welcome-section .photo-links {
  margin-top: 0;
  margin-bottom: 2px;
  font-size: 0.8rem;
}

.welcome-section .photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
  overflow: hidden;
}

.welcome-section .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.welcome-section .bio {
  flex: 1;
}

h1 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.25rem;
  color: #333;
  margin-top: 30px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
}

/* ===== Publications ===== */
.pub-entry {
  margin-bottom: 16px;
  line-height: 1.5;
}

.pub-entry strong a {
  color: #444;
}

.pub-entry strong a:hover {
  color: #222;
  text-decoration: underline;
}

/* ===== Abstract Toggle ===== */
details {
  margin-top: 0;
  display: inline-block;
  vertical-align: baseline;
  margin-left: 4px;
  position: relative;
  top: -1px;
}

details summary {
  font-size: 0.85rem;
  color: #777;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  padding: 0;
  transition: color 0.15s;
  list-style: none;
  vertical-align: baseline;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1h8a1 1 0 011 1v12a1 1 0 01-1 1H4a1 1 0 01-1-1V2a1 1 0 011-1zm1 3v1h6V4H5zm0 2.5v1h6v-1H5zm0 2.5v1h4V9H5z'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1h8a1 1 0 011 1v12a1 1 0 01-1 1H4a1 1 0 01-1-1V2a1 1 0 011-1zm1 3v1h6V4H5zm0 2.5v1h6v-1H5zm0 2.5v1h4V9H5z'/%3E%3C/svg%3E") no-repeat center;
}

details summary:hover {
  color: #555;
  text-decoration: underline;
}

details[open] summary {
  color: #555;
}

details .abstract-text {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.55;
  padding-left: 2px;
}

/* ===== Publisher Page Button ===== */
a.pub-link {
  font-size: 0.85rem;
  color: #777;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s;
  margin-left: 4px;
  vertical-align: baseline;
  position: relative;
  top: -1px;
}

a.pub-link:hover {
  color: #555;
  text-decoration: underline;
}

a.pub-link::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 3.2a3.2 3.2 0 014.525 4.525l-.85.85a.8.8 0 01-1.131-1.131l.85-.85A1.6 1.6 0 007.53 4.33l-.85.85a.8.8 0 01-1.13-1.131l.85-.85zm3.2 3.2a.8.8 0 010 1.131l-2.07 2.07a.8.8 0 11-1.13-1.132l2.07-2.069a.8.8 0 011.13 0zM4.33 7.531a.8.8 0 011.132 0 .8.8 0 010 1.131l-.85.85a1.6 1.6 0 002.263 2.263l.85-.85a.8.8 0 111.131 1.131l-.85.85A3.2 3.2 0 013.48 8.381l.85-.85z'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 3.2a3.2 3.2 0 014.525 4.525l-.85.85a.8.8 0 01-1.131-1.131l.85-.85A1.6 1.6 0 007.53 4.33l-.85.85a.8.8 0 01-1.13-1.131l.85-.85zm3.2 3.2a.8.8 0 010 1.131l-2.07 2.07a.8.8 0 11-1.13-1.132l2.07-2.069a.8.8 0 011.13 0zM4.33 7.531a.8.8 0 011.132 0 .8.8 0 010 1.131l-.85.85a1.6 1.6 0 002.263 2.263l.85-.85a.8.8 0 111.131 1.131l-.85.85A3.2 3.2 0 013.48 8.381l.85-.85z'/%3E%3C/svg%3E") no-repeat center;
}

/* ===== Co-author Names ===== */
.coauthor {
  font-size: 0.85em;
  color: #777;
}

/* ===== Section Headers (Research Categories) ===== */
.section-header {
  font-size: 1.15rem;
  font-weight: 700;
  color: #862633;
  margin-top: 36px;
  margin-bottom: 16px;
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px 0;
  color: #999;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .content-area {
    margin: 0;
    padding: 24px 20px;
  }

  .welcome-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li a {
    padding: 10px 20px;
  }
}
