#news,
#education,
#experience,
#publications,
#projects,
#awards,
#patents,
#skills {
  scroll-margin-top: 88px;
}

body {
  background-color: #ffffff;
  color: #202124;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.main-heading {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-panel {
  margin-bottom: 30px;
  padding: 22px 0 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #b95f3d;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 780px;
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 17px;
}

.hero-actions,
.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin: 0 0 16px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(185, 95, 61, 0.34);
  border-radius: 8px;
  background: #fff7f3;
  color: #9f4e31 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.action-button:hover {
  background: #fbe8df;
  color: #7d321d !important;
}

.research-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(54, 83, 99, 0.18);
  border-radius: 999px;
  background: #f4f7f8;
  color: #365363;
  font-size: 13px;
  font-weight: 650;
}

.news-box {
  max-height: 250px;
  overflow-y: auto;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fbfbfa;
  margin-bottom: 24px;
}

.news-list,
.compact-list {
  margin: 0;
  padding-left: 18px;
}

.news-list {
  list-style: none;
  padding-left: 0;
}

.news-list li,
.compact-list li {
  margin-bottom: 10px;
}

.news-date {
  display: inline-block;
  min-width: 72px;
  color: #b95f3d;
  font-weight: 700;
}

.experience-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.experience-card,
.publication-card,
.project-card {
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #4b5563;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.experience-card {
  display: flex;
  align-items: center;
  padding: 16px;
}

.experience-card:hover,
.publication-card:hover,
.project-card:hover {
  border-color: rgba(185, 95, 61, 0.28);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

.experience-logo {
  width: 64px;
  height: 64px;
  margin-right: 18px;
  border-radius: 8px;
  object-fit: contain;
  flex: 0 0 auto;
}

.text-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(54, 83, 99, 0.16);
  background: #eef4f6;
  color: #365363;
  font-size: 15px;
  font-weight: 800;
}

.experience-info strong,
.publication-card strong,
.project-card strong {
  color: #202124;
  font-size: 1.05em;
}

.muted {
  display: block;
  margin-top: 4px;
  color: #6b7280;
}

.legend {
  margin-top: -4px;
  color: #6b7280;
  font-size: 13px;
}

.pub-button-container {
  display: flex;
  gap: 10px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}

.pub-button {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #f8fafc;
  color: #374151;
  cursor: pointer;
  font-weight: 700;
}

.pub-button:hover {
  background-color: #eef2f7;
}

.pub-button.active {
  background-color: #b95f3d;
  border-color: #b95f3d;
  color: #ffffff;
}

.publication-view[hidden] {
  display: none !important;
}

.publication-card,
.project-card {
  margin-bottom: 16px;
  padding: 12px;
}

.publication-card.featured {
  border-color: rgba(185, 95, 61, 0.42);
  background: #fffaf7;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pub-media-rotator,
.project-media {
  position: relative;
  width: 300px;
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #f3f4f6;
}

.pub-media-rotator img,
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.code-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(54, 83, 99, 0.18);
  background:
    linear-gradient(135deg, rgba(185, 95, 61, 0.12), rgba(54, 83, 99, 0.1)),
    #f8fafc;
  color: #365363;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 26px;
  font-weight: 800;
}

.venue {
  color: #4c6a94;
}

#full-publications {
  max-height: 390px;
  overflow-y: auto;
  padding: 12px 10px 0 0;
  margin-bottom: 24px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 95, 61, 0.45) rgba(248, 250, 252, 0.9);
}

#full-publications::-webkit-scrollbar {
  width: 8px;
}

#full-publications::-webkit-scrollbar-track {
  background: rgba(248, 250, 252, 0.9);
  border-radius: 999px;
}

#full-publications::-webkit-scrollbar-thumb {
  background: rgba(185, 95, 61, 0.45);
  border-radius: 999px;
}

.full-publication-list {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

.full-publication-list li {
  margin-bottom: 14px;
}

.pub-list-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(185, 95, 61, 0.26);
  border-radius: 999px;
  background: #fff7f3;
  color: #9f4e31;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  vertical-align: 1px;
  white-space: nowrap;
}

.full-publication-list .pub-list-title {
  color: #202124;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.pub-list-authors {
  color: #6b7280;
  font-size: 13px;
  font-style: italic;
}

.pub-list-note {
  color: #b95f3d;
  font-style: italic;
  font-weight: 700;
}

.pub-list-links {
  white-space: nowrap;
}

.pub-list-links a,
div.markdown-body a,
a {
  color: #b95f3d;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.pub-list-links a {
  margin-left: 4px;
  font-weight: 650;
}

.pub-list-links a:hover,
div.markdown-body a:hover,
a:hover {
  color: #365363;
  text-decoration: underline !important;
}

.skill-tags {
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  .main-heading {
    font-size: 28px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .experience-card,
  .card-row {
    align-items: stretch;
    flex-direction: column;
  }

  .experience-logo {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .pub-media-rotator,
  .project-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .news-date {
    display: block;
    min-width: 0;
  }
}
