/* =========================================================
   PUBLICATIONS PAGE
   File: publications.css
   ========================================================= */

/* ---------------------------------------------------------
   PAGE WIDTH AND INTRODUCTION
   --------------------------------------------------------- */

main.content {
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 1.25rem;
  padding-bottom: 4rem;
}

.publications-intro {
  max-width: 1000px;
  margin-bottom: 1.75rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #4d5b66;
}


/* ---------------------------------------------------------
   STATISTICS CARDS
   --------------------------------------------------------- */

.publication-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
  margin: 2rem 0;
}

.publication-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  min-width: 0;
  min-height: 140px;
  padding: 1rem 1.25rem;

  background: #ffffff;
  border-radius: 12px;

  text-align: left !important;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.publication-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.1);
}

.publication-card .stat-number {
  display: block;
  width: 100%;

  margin: 0 0 0.6rem;

  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;

  color: #0b5ba7;
  text-align: left !important;
}

.publication-card .stat-label {
  display: block;
  width: 100%;

  margin: 0;

  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;

  color: #4d5b66;
  text-align: left !important;
}

.stats-note {
  margin: 0.65rem 0 2.75rem;
  font-size: 0.8rem;
  color: #7b8792;
  text-align: center;
}



/* ---------------------------------------------------------
   RESEARCH THEME SECTIONS
   --------------------------------------------------------- */

.publication-theme {
  margin-top: 3rem;
}

.publication-theme h2 {
  margin: 0 0 0.45rem;
  padding-bottom: 0.55rem;

  font-size: 1.7rem;
  font-weight: 700;
  color: #29465d;

  border-bottom: 3px solid #0b5ba7;
}

.theme-description {
  max-width: 1050px;
  margin: 0 0 1.2rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #5f6d78;
}


/* ---------------------------------------------------------
   TWO-COLUMN PUBLICATION GRID
   --------------------------------------------------------- */

.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}


/* ---------------------------------------------------------
   INDIVIDUAL PUBLICATION CARDS
   --------------------------------------------------------- */

.publication-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);

  min-width: 0;
  min-height: 145px;

  padding: 0;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #d8e1e8;
  border-radius: 12px;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.publication-item:hover {
  transform: translateY(-2px);
  border-color: #b8c8d6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
}


/* ---------------------------------------------------------
   YEAR PANEL
   --------------------------------------------------------- */

.publication-year {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100%;
  padding: 0.6rem 0.3rem;

  background: #29465d;
  color: #ffffff;

  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* ---------------------------------------------------------
   PUBLICATION CONTENT
   --------------------------------------------------------- */

.publication-details {
  display: flex;
  flex-direction: column;

  min-width: 0;

  /* top, right, bottom, left */
  padding: 0.7rem 0.8rem 0.4rem;
}

/* Publication title */
.publication-details h3,
.publication-title {
  margin: 0 0 0.55rem;

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;

  color: #2b63a8;
}

/* Author container */
.publication-authors {
  margin: 0;
  padding: 0;

  font-size: 0.82rem;
  line-height: 1.2;
  color: #3f4e58;
}

/* Remove Quarto's default paragraph margins */
.publication-authors p {
  margin: 0;
  padding: 0;
}

/* Journal container */
.publication-source {
  margin: 0.18rem 0 0;
  padding: 0;

  font-size: 0.82rem;
  line-height: 1.2;
  color: #5f6d78;
}

/* Remove Quarto's default paragraph margins */
.publication-source p {
  margin: 0;
  padding: 0;
}

.publication-source em {
  color: #3e505d;
}


/* ---------------------------------------------------------
   DOI BUTTON
   --------------------------------------------------------- */

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;

  /* Pushes the DOI button toward the bottom */
  margin-top: auto;
  padding: 0;
}

/* Remove Quarto's default paragraph margins */
.publication-links p {
  margin: 0;
  padding: 0;
}

.publication-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.32rem 0.5rem;

  background: #0b5ba7;
  border: 1px solid #0b5ba7;
  border-radius: 5px;

  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;

  color: #ffffff;
  text-decoration: none;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.publication-button:hover {
  transform: translateY(-1px);

  background: #08477f;
  border-color: #08477f;

  color: #ffffff;
  text-decoration: none;
}
/* ---------------------------------------------------------
   STUDENT AUTHOR NOTE
   --------------------------------------------------------- */

.student-note {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6d7b85;
}

.publication-authors sup {
  font-size: 0.68em;
  font-weight: 700;
  color: #0b5ba7;
}


/* ---------------------------------------------------------
   STUDENT AUTHOR LEGEND
   --------------------------------------------------------- */

.student-note {
  margin-top: 3rem;
  padding-top: 1.25rem;

  border-top: 1px solid #d8e1e8;

  font-size: 0.88rem;
  line-height: 1.5;
  color: #5f6d78;
}

.student-note strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #29465d;
}


/* ---------------------------------------------------------
   RESPONSIVE DESIGN
   --------------------------------------------------------- */

@media (max-width: 1000px) {

  .publication-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publication-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 600px) {

  main.content {
    padding-top: 1rem;
    padding-bottom: 3rem;
  }

  .publication-stats {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .publication-stat-card {
    min-height: 120px;
  }

  .publication-theme {
    margin-top: 2.5rem;
  }

  .publication-theme h2 {
    font-size: 1.4rem;
  }

  .publication-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .publication-year {
    min-height: auto;
    padding: 0.65rem 1rem;
  }

  .publication-details {
    padding: 0.85rem .85rem;
  }
}