/* =========================================================
   PUBLICATIONS PAGE
   ========================================================= */

.pub-container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.pub-hero {
  margin-top: -1rem;
  padding: 5rem 0 4.4rem;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(125deg, #17324d 0%, #24535f 55%, #2f7173 100%);
}

.pub-kicker,
.pub-section-label {
  display: inline-block;
  margin: 0;
  color: #2f7173;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.pub-hero .pub-kicker {
  color: #bfe1df;
}

.pub-hero h1 {
  max-width: 900px;
  margin: 0.7rem 0 1.1rem;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.pub-hero-text {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.16rem;
  line-height: 1.7;
}

.pub-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 780px;
  margin-top: 2.3rem;
}

.pub-summary-card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  backdrop-filter: blur(6px);
}

.pub-summary-card strong {
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1.1;
}

.pub-summary-card span {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.pub-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.pub-profile-button {
  display: inline-flex;
  padding: 0.68rem 1.05rem;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
}

.pub-profile-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pub-orcid-button {
  color: #17324d !important;
  background: #a6ce39;
  border-color: #a6ce39;
}

.pub-orcid-button:hover {
  color: #17324d !important;
  background: #b6dc48;
}

.pub-jump-nav {
  position: sticky;
  top: 76px;
  z-index: 5;
  display: flex;
  width: fit-content;
  gap: 0.3rem;
  margin: 2rem auto 0;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dfe6e7;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(23, 50, 77, 0.08);
  backdrop-filter: blur(8px);
}

.pub-jump-nav a {
  padding: 0.58rem 0.9rem;
  color: #17324d;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.pub-jump-nav a:hover {
  color: #255b5d;
  background: #eef3f3;
}

.pub-main-section {
  padding: 4.8rem 0 1rem;
}

.pub-section-heading {
  display: flex;
  max-width: 820px;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2.7rem;
}

.pub-section-number {
  display: flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  color: #255b5d;
  background: #eef3f3;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 750;
}

.pub-section-heading h2,
.pub-source-note h2 {
  margin: 0.45rem 0 0.65rem;
  color: #17324d;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.pub-section-heading p:last-child,
.pub-source-note p {
  margin: 0;
  color: #5f6d75;
}

.pub-year-section {
  margin-bottom: 3.7rem;
}

.pub-year-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.pub-year-heading span {
  color: #2f7173;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pub-year-heading div {
  height: 1px;
  background: #dfe6e7;
}

.pub-list {
  display: grid;
  gap: 1rem;
}

.pub-item {
  position: relative;
  padding: 1.55rem 1.7rem;
  background: #ffffff;
  border: 1px solid #dfe6e7;
  border-left: 5px solid #2f7173;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 6px 22px rgba(23, 50, 77, 0.045);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.pub-item:hover {
  border-color: rgba(47, 113, 115, 0.48);
  box-shadow: 0 12px 30px rgba(23, 50, 77, 0.09);
  transform: translateY(-2px);
}

.pub-featured {
  background:
    radial-gradient(circle at 92% 15%, rgba(47, 113, 115, 0.09), transparent 26%),
    #ffffff;
  border-left-color: #17324d;
}

.pub-correction {
  border-left-color: #b77855;
}

.pub-item-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.pub-type {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.58rem;
  color: #255b5d;
  background: #eef3f3;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pub-type-abstract {
  color: #725035;
  background: #f6eee6;
}

.pub-type-correction {
  color: #7a4935;
  background: #f7e9e1;
}

.pub-year-small {
  color: #7b878d;
  font-size: 0.76rem;
  font-weight: 700;
}

.pub-item h3 {
  max-width: 930px;
  margin: 0 0 0.8rem;
  color: #17324d;
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  line-height: 1.35;
}

.pub-authors {
  margin: 0 0 0.35rem;
  color: #44535b;
  font-size: 0.93rem;
  line-height: 1.55;
}

.pub-authors strong {
  color: #17324d;
}

.pub-venue {
  margin: 0 0 0.75rem;
  color: #5f6d75;
  font-size: 0.92rem;
}

.pub-doi,
.conference-link {
  display: inline-flex;
  color: #255b5d;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.pub-doi:hover,
.conference-link:hover {
  color: #17324d;
  text-decoration: underline;
}

.pub-conference-section {
  padding-top: 5.3rem;
}

.conference-timeline {
  position: relative;
  display: grid;
}

.conference-timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 140px;
  width: 2px;
  background: #dfe6e7;
  content: "";
}

.conference-item {
  position: relative;
  display: grid;
  grid-template-columns: 108px 26px 1fr;
  gap: 1.2rem;
  min-height: 150px;
  padding-bottom: 1.3rem;
}

.conference-year {
  padding-top: 1.1rem;
  color: #5f6d75;
  font-size: 0.92rem;
  font-weight: 750;
  text-align: right;
}

.conference-marker {
  position: relative;
}

.conference-marker::before {
  position: absolute;
  top: 1.25rem;
  left: 8px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 3px solid #2f7173;
  border-radius: 50%;
  content: "";
}

.conference-content {
  padding: 1.15rem 1.35rem;
  background: #ffffff;
  border: 1px solid #dfe6e7;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(23, 50, 77, 0.04);
}

.conference-featured .conference-content {
  background:
    linear-gradient(135deg, rgba(47, 113, 115, 0.07), rgba(23, 50, 77, 0.04)),
    #ffffff;
  border-color: rgba(47, 113, 115, 0.35);
}

.conference-type {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.55rem;
  color: #255b5d;
  background: #eef3f3;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.conference-poster {
  color: #725035;
  background: #f6eee6;
}

.conference-content h3 {
  margin: 0 0 0.55rem;
  color: #17324d;
  font-size: 1.14rem;
  line-height: 1.38;
}

.conference-content p {
  margin: 0 0 0.35rem;
  color: #526168;
  font-size: 0.9rem;
}

.conference-event {
  color: #69767c !important;
}

.pub-source-note {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(260px, 0.75fr);
  gap: 2rem;
  align-items: center;
  margin: 4rem 0 1rem;
  padding: 2.5rem;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(125deg, #17324d, #2f7173);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(23, 50, 77, 0.18);
}

.pub-source-note .pub-section-label {
  color: #bfe1df;
}

.pub-source-note h2 {
  color: #ffffff;
}

.pub-source-note p {
  color: rgba(255, 255, 255, 0.8);
}

.pub-source-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pub-source-actions .btn-outline-primary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}

.pub-source-actions .btn-outline-primary:hover {
  color: #17324d;
  background: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 850px) {
  .pub-summary-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .pub-summary-card {
    min-height: 86px;
  }

  .pub-source-note {
    grid-template-columns: 1fr;
  }

  .pub-source-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 650px) {
  .pub-container {
    width: min(100% - 2rem, 1120px);
  }

  .pub-hero {
    padding: 3.8rem 0 3.4rem;
  }

  .pub-hero h1 {
    font-size: 3rem;
  }

  .pub-jump-nav {
    top: 68px;
    width: 100%;
    justify-content: center;
  }

  .pub-jump-nav a {
    font-size: 0.78rem;
  }

  .pub-main-section {
    padding-top: 3.6rem;
  }

  .pub-section-heading {
    gap: 0.8rem;
  }

  .pub-section-number {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .pub-item {
    padding: 1.3rem 1.15rem;
  }

  .pub-item-topline {
    align-items: flex-start;
  }

  .conference-timeline::before {
    left: 15px;
  }

  .conference-item {
    grid-template-columns: 26px 1fr;
    gap: 0.7rem;
    padding-bottom: 1rem;
  }

  .conference-year {
    grid-column: 2;
    padding: 0 0 0.2rem;
    text-align: left;
  }

  .conference-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .conference-marker::before {
    left: 9px;
  }

  .conference-content {
    grid-column: 2;
  }

  .pub-source-note {
    padding: 1.7rem;
  }

  .pub-source-actions .btn {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}
