html, body {
  background-color: #f6f8fa;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1 {
  font-weight: 700;
  font-size: 2.05rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
  color: #000000;
}

hr.name-divider {
  max-width: 160px;
  margin: 0.5rem 0 1.25rem 0;
  border-top: 2px solid #3b82f6;
  opacity: 1;
}

hr.section-divider {
  border-color: rgba(23,23,23,0.15);
  opacity: 1;
  margin: 1.25rem 0;
}

.section-heading {
  display: inline-block;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 2px;
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #000000;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
}

.site-nav-tabs {
  border-bottom: none !important;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.site-nav-tabs .nav-link {
  border-bottom: none !important;
  border-left: 2px solid transparent !important;
  padding: 0.2rem 0.5rem !important;
  text-align: right;
}

.site-nav-tabs .nav-link:hover {
  border-left-color: rgba(23,23,23,0.3) !important;
  border-bottom: none !important;
}

.site-nav-tabs .nav-link.active {
  border-color: transparent transparent transparent #15727a !important;
}

#icon-list {
  margin-bottom: 0;
}

#icon-list .btn {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.88rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid #171717;
  color: #000000;
  background: transparent;
  border-radius: 0;
  pointer-events: none;
  opacity: 0.7;
}

#icon-list a {
  pointer-events: auto;
  text-decoration: none;
}

.section {
  margin-bottom: 1.25rem;
}

.section p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  color: #000000;
}

.research-intro {
  color: #000000;
  max-width: 44rem;
}

.research-feed {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.45rem;
}

.research-item {
  padding: 0.2rem 0 0.95rem 0;
  border: none;
  border-bottom: 1px solid rgba(23,23,23,0.12);
  background: transparent;
  border-radius: 0;
}

.research-item-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
  flex-wrap: wrap;
}

.research-tag {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #15727a;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.research-meta {
  font-size: 0.84rem;
  color: #000000;
}

.research-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.1rem 0;
  color: #000000;
}

.research-title a {
  color: inherit;
  text-decoration: none;
}

.research-title a:hover {
  color: #15727a;
  text-decoration: underline;
}

.research-authors {
  margin: 0 0 0.1rem 0;
  color: #000000;
  font-size: 0.9rem;
}

.research-description {
  margin: 0;
  color: #000000;
  font-size: 0.92rem;
  max-width: 44rem;
}

img.project-img {
  border-radius: 4px;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

/* ================================
   TABS
   ================================ */

.nav-tabs {
  border-bottom: 2px solid rgba(23,23,23,0.2);
  margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
  color: #000000;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.92rem;
  font-family: "Instrument Sans", sans-serif;
  padding: 0.4rem 0.9rem;
  background: none;
}

.nav-tabs .nav-link:hover {
  color: #000000;
  border-bottom-color: rgba(23,23,23,0.3);
}

.nav-tabs .nav-link.active {
  color: #000000;
  font-weight: 600;
  background: none;
  border-color: transparent transparent #15727a;
}

/* ================================
   RESUME TAB
   ================================ */

.resume-section {
  margin-bottom: 2rem;
}

.resume-summary-card {
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(23,23,23,0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(23,23,23,0.04);
  text-align: center;
}

.resume-summary-lead {
  margin: 0 0 0.35rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #000000;
}

.resume-summary-text {
  margin: 0;
  font-size: 1.02rem;
  color: #000000;
}

.resume-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #000000;
  font-family: "Instrument Sans", sans-serif;
}

.resume-section h2::before,
.resume-section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #171717;
  opacity: 0.3;
}

.resume-entry {
  margin-bottom: 1.5rem;
}

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.resume-entry-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
}

.resume-entry-date {
  font-size: 0.93rem;
  color: #000000;
  white-space: nowrap;
}

.resume-entry-sub {
  font-size: 0.93rem;
  color: #000000;
  margin-bottom: 0.25rem;
}

.resume-bullets {
  padding-left: 1.25rem;
  margin: 0.4rem 0 0 0;
}

.resume-bullets li {
  font-size: 0.96rem;
  color: #000000;
  margin-bottom: 0.2rem;
  line-height: 1.5;
}

.resume-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #111111;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(23,23,23,0.18);
  border-radius: 6px;
  background: rgba(255,255,255,0.86);
}

.skill-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ================================
   CV / PUBLICATIONS TAB
   ================================ */

.cv-section {
  margin-bottom: 2rem;
}

.cv-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #000000;
  font-family: "Gabarito", sans-serif;
}

.cv-section h2::before,
.cv-section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #171717;
  opacity: 0.3;
}

.pub-item {
  margin-bottom: 0.75rem;
}

.fun-work-section {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid rgba(21,114,122,0.14);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(21,114,122,0.08), rgba(255,255,255,0.9));
}

.fun-work-section .project-feature-card + .project-feature-card {
  margin-top: 1.4rem;
}

.fun-work-header {
  margin-bottom: 0.9rem;
}

.fun-work-header h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.fun-work-header p {
  margin: 0;
  color: #000000;
  font-size: 0.98rem;
}

.fun-work-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.4rem;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  background: rgba(21,114,122,0.12);
  color: #15727a;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-feature-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  align-items: center;
}

.project-feature-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 80%;
  border-radius: 8px;
  border: 1px solid rgba(23,23,23,0.08);
  background: rgba(255,255,255,0.5);
}

.project-feature-content .pub-title {
  margin-bottom: 0.25rem;
}

.project-feature-label {
  margin: 0 0 0.25rem 0;
  color: rgba(21,114,122,0.85);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pub-item {
  margin-bottom: 1.35rem;
}

.pub-title {
  font-weight: 600;
  margin: 0 0 0.32rem 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.pub-title a {
  color: inherit;
  text-decoration: none;
  text-decoration-line: underline;
  text-decoration-color: rgba(23,23,23,0.3);
  text-underline-offset: 2px;
}

.pub-title a:hover {
  color: #15727a;
  text-decoration-color: #15727a;
}

.pub-authors {
  margin: 0 0 0.22rem 0;
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.4;
}

.pub-journal {
  margin: 0;
  font-size: 0.90rem;
  color: #000000;
  line-height: 1.4;
}

.pub-highlight {
  font-weight: 700;
  color: #15727a;
}

.resume-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  color: #111111;
  font-size: 0.93rem;
  border: 1px solid #171717;
  opacity: 0.7;
  font-family: "Gabarito", sans-serif;
}

.resume-download-link:hover {
  opacity: 1;
  text-decoration: none;
  color: #000000;
}

@media (max-width: 767.98px) {
  .project-feature-card {
    grid-template-columns: 1fr;
  }
}
